Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: DanRR on September 12, 2015, 05:31:28 pm

Title: Can't set Host application for debugging DLL
Post by: DanRR on September 12, 2015, 05:31:28 pm
Hi,
I'm using CB 10474 on XP(on VM). GDB version is 7.6.1.
I'm trying to set Python script as Host application for DLL project.
When starting the debugger I'm getting "Starting the debuggee failed: No executable specified, use `target exec'."
When running (green arrow) it runs fine.
When starting the debugger from CPP host project, I can debug the DLL.

Thanks
Title: Re: Can't set Host application for debugging DLL
Post by: oBFusCATed on September 12, 2015, 08:27:38 pm
What are you setting as host app the path to your script or the path to python.exe?
It should be the latter, gdb doesn't know how to launch a python script.
Title: Re: Can't set Host application for debugging DLL
Post by: DanRR on September 13, 2015, 07:22:29 am
The Python path. the exact setting is:
Code
"C:\Python27\python X:\projects\can\can_key\python\test\test.py"
I’ve tried it also with a double backslash.
Title: Re: Can't set Host application for debugging DLL
Post by: oBFusCATed on September 13, 2015, 10:38:39 am
This is not correct.
Set C:\Python27\python in the host application path widget.
And then set X:\projects\can\can_key\python\test\test.py in the program arguments widget.
Title: Re: Can't set Host application for debugging DLL
Post by: DanRR on September 25, 2015, 08:04:16 am
Thanks!