News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

Debug

Started by tpekar, September 21, 2015, 09:22:47 PM

Previous topic - Next topic

tpekar

I was wanting to try the Pelles C debug.  I have gone through the hellp screens and found them to be more like a manual (a good reference if you already know how to do it).  I was hoping for a small 4 or 5 statement program with a step by step how to.  Can anyone provide this for me?  Thanks in advance.

TimoVJL

#1
Prepare debugging from Project menu:
Project options -> Compiler -> Debug information: Full
Project options -> Linker ->  Debug information: Codeview & COFF format

Rebuild project
Press F5 or from Project menu select Debug xxx.exe

Read from help file POIDE Reference Debugger section ;)

http://forum.pellesc.de/index.php?topic=4280.msg15800#msg15800
http://forum.pellesc.de/index.php?topic=5353.msg20602#msg20602
May the source be with you

tpekar

Thanks Timovl.  Was able to get the debug running.  Which is more than I can say for my program.  My integers on the Globals tab have what looks like hexadecimal numbers in them. (?)  Is this the way they should be displayed?

It seems my program has an access violation away from where the problem is occuring because it happens on a simple statement like "If b<0 {".  If that is the case, how can I figure out where the problem is occuring?

TimoVJL

Quote from: tpekar on October 07, 2015, 07:34:34 PM
  My integers on the Globals tab have what looks like hexadecimal numbers in them. (?)  Is this the way they should be displayed?
Check mark off from context menu Hexadecimal values
May the source be with you