NO

Author Topic: Debug  (Read 3543 times)

tpekar

  • Guest
Debug
« on: September 21, 2015, 09:22:47 PM »
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.

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2091
Re: Debug
« Reply #1 on: September 22, 2015, 10:11:00 AM »
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
« Last Edit: September 22, 2015, 10:22:43 AM by TimoVJL »
May the source be with you

tpekar

  • Guest
Re: Debug
« Reply #2 on: October 07, 2015, 07:34:34 PM »
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?

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2091
Re: Debug
« Reply #3 on: October 07, 2015, 09:16:19 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