Page 1 of 1

[Resolved] Standalone debugger timeout

Posted: Tue Jul 07, 2015 2:38 am
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).

Re: Standalone debugger timeout

Posted: Thu Jul 09, 2015 11:55 am
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.