Silverfrost Forums

Welcome to our forums

How to use a debugger?

28 Aug 2017 7:20 #20063

Where do I find out about how to use a debugger? I think it would be SDBG because I use Clearwin. I don't have Visual Studio or .NET on my computer.

Also, I do my work with Plato.

So far, I debug using WRITE statements but I'd rather use a run-time debugger.

Thx,

Dan

29 Aug 2017 6:31 #20066
  1. From Plato, select 'Debug Win32' or better 'CheckMate Win32'.
  2. From the 'View' menu, select 'Build toolbar' if this toolbar is not already visible.
  3. Use the build toolbar to compile, link and 'Continue debugging'.
28 Sep 2017 9:11 #20330

Okay, I've progressed a little bit. Using Plato and Ftn95.cfg (see below), I'm able to set things at compilation time so that when I run the compiled program, it runs Sdbg.exe. However, how do I get debugging information?

There are a few windows: what looks like a black command prompt window with heading C:\Program Files (x86)\Silverfrost\FTN95.ver8.10\SDBG.EXE, a Call Stack window, and a Locals Variables window. The Call Stack Window says 'status: Program Breakpoint'. However, none of these windows take any input. Another window is my source file. The first executable line in the source file has a blinking yellow arrow next to the first executable statement. None of them take any input except, I suppose the source file in Plato. How do I run or step through the program and get information about the variables? If I click run in the Build tool, a windows comes up saying 'Waiting' 'The application being debugged is running. Control will return to the debugger when either a breakpoint or error occurs.' There is a button marked 'pause'. Meanwhile, the program is waiting for input from me. I enter it and the whole program runs without stopping for any debugging. :?: :?:

The FTN95.cfg file I use is:

/COLOUR /DELETE_OBJ_ON_ERROR /DUMP /ERROR_NUMBERS /ERRORLOG /LINK /LIST /MAP /MINIMISE_REBUILD /-NO_BANNER /NO_TRUNCATE /NON_STANDARD /PERSIST /PROFILE /SINGLE_THREADED /STATISTICS /UNDERFLOW /UNLIMITED_ERRORS /VS7 /WINDOWS /WRAP /XREF

I hope my inquiry is coherent.
:lol: :lol:

28 Sep 2017 11:47 #20331

Silverfrost has to make YouTube video about that. I think there was a movie before. If not then nowadays it is just a 10 min job. It is 100x easier to follow what you see then what you hear or read

29 Sep 2017 10:29 #20333

Yes, something like this. Each small video has to be 15 to 30 seconds long maximum where couple simple and more complex cases have to be shown. In our advertisement times no one will look at longer video. Even in love humans get in just first 3 seconds, the rest is a waste of time 😃. So when preparing videos do not lose those first 3 seconds.

I am still not using Plato for example. The movie has to convince me that my way of using BAT files combined with file manager Total Commander and Notetab Pro editor is less convenient and less functional then using Plato.

30 Sep 2017 9:12 #20338

Dan (kaliushkin)

You should see a toolbar with buttons to click for 'Step into', 'Step over', etc. Also a menu bar with various menu options.

4 Oct 2017 6:24 #20364

Success! 😄

4 Oct 2017 6:29 #20365

based on your fresh impressions please tell the developers what confused you and how you'd like them to eliminate that. I see until recently almost no one used debugger. And judging by its absolutely the same terrible look and feel for decades ( despite it is the one of the most powerful debuggers) even probably the developers themselves too 😃

5 Oct 2017 6:38 #20378

Getting started was the hardest part. I thoroughly reviewed all the information in FTN95 help but couldn't see how to 1. set up my code with debugging hooks at compilation time, and 2. run my program with debugging working. It was the Paul Laidler's post about the Build Toolbar that gave me the answers. I would say the Build Toolbar was the missing link.

Once that was done, FTN help showed me how to set up breakpoints (right-click on the code) and step through the program. I was able to run sdbg.exe well, also.

I've since successfully used it to debug two programs. Putting WRITE commands in the code isn't that inconvenient for the code I'm writing now but it must be a big deal on more major and developmental programs.

Again, thanks.

5 Oct 2017 6:39 #20379

Getting started was the hardest part. I thoroughly reviewed all the information in FTN95 help but couldn't see how to 1. set up my code with debugging hooks at compilation time, and 2. run my program with debugging working. It was the Paul Laidler's post about the Build Toolbar that gave me the answers. I would say the Build Toolbar was the missing link.

Once that was done, FTN help showed me how to set up breakpoints (right-click on the code) and step through the program. I was able to run sdbg.exe well, also.

I've since successfully used it to debug two programs. Putting WRITE commands in the code isn't that inconvenient for the code I'm writing now but it must be a big deal on more major and developmental programs.

Again, thanks.

Please login to reply.