[Resolved] Standalone debugger timeout

Everything else that doesn't fall into one of the other PB categories.
ozzie
Enthusiast
Enthusiast
Posts: 444
Joined: Sun Apr 06, 2008 12:54 pm
Location: Brisbane, Qld, Australia
Contact:

[Resolved] Standalone debugger timeout

Post by ozzie »

One of my users is getting a memory error with my PB program, so I thought I'd provide him with a debug version, but I can't get the standalone debugger to work. I get the message ""The debugged executable did not respond to communication for 10 seconds. Disconnecting." I tried increasing the timeout to 30 seconds but it still times out, even though my program has fully started and I can operate the program.

When using the IDE I use the integrated debugger and that works fine, but for this requirement I set the selected debugger to 'Standalone GUI Debugger' before compiling the executable. To run the executable I run a .bat file containing

Code: Select all

PBDebugger scs11tr.exe
where scs11tr.exe is the name of the compiled executable. I've also tried selecting the 'Console only Debugger' but I get the same results.

Am I missing something?

I'm using PB 5.31 (x86).
Last edited by ozzie on Thu Jul 09, 2015 11:56 am, edited 1 time in total.
ozzie
Enthusiast
Enthusiast
Posts: 444
Joined: Sun Apr 06, 2008 12:54 pm
Location: Brisbane, Qld, Australia
Contact:

Re: Standalone debugger timeout

Post by ozzie »

Got that sorted out now, thanks to Fred for this advice:
You will need to create the exe either from the commandline (pbcompiler /CONSOLE /DEBUGGER /EXE yourexe.exe DebuggerTest.pb) or check the "create temp executable in source dir" in the CompilerOptions -> Compile/Run tab and look for the created executable when you run it from the IDE with the debugger on.

This is because "Create Executable..." from the IDE always disable the debugger as it's meant to be deployed (so you don't have to uncheck the debug button).
DebuggerTest.pb is a test program I wrote but I've now applied this to my main application and can now create the required executable that incorporates the debugger code. btw, note that 'pbcompiler' is in the Pure Basic Compilers folder. I wrote a batch file (.bat) to create the exe using pbcompiler.
Post Reply