Re: Debugging C program strings with STRDBG
Patrik Schindler <[email protected]> Thu, 4 Sep 2025 10:34:02 +0200
| Newsgroups | gmane.comp.lang.as400.c |
|---|---|
| Message-ID | <[email protected]> |
Hello Jon, Am 03.09.2025 um 22:31 schrieb Jon Paris <[email protected]>: > On the debug comman line enter: > > Eval pointerName:c lengthToView > > e.g. eval dataarea:c 20 will show the first 20 characters of the string referened by the pointer. I think for C programs you can also use S as the option which I guess takes note of the null termination. Not sure. Read the help text for the debugger to ase all options. Thanks a lot! Hmm. Trying some of these, I'm getting always getting error CPF7E27 "Formatting error". See also my reply to Stephen. :wq! PoC -- This is the Bare Metal Programming IBM i (AS/400 and iSeries) (C400-L) mailing list To post a message email: [email protected] To subscribe, unsubscribe, or change list options, visit: https://lists.midrange.com/mailman/listinfo/c400-l or email: [email protected] Before posting, please take a moment to review the archives at https://archive.midrange.com/c400-l.