Author Topic: Can't set Host application for debugging DLL  (Read 3297 times)

Offline DanRR

  • Multiple posting newcomer
  • *
  • Posts: 18
Can't set Host application for debugging DLL
« 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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Can't set Host application for debugging DLL
« Reply #1 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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline DanRR

  • Multiple posting newcomer
  • *
  • Posts: 18
Re: Can't set Host application for debugging DLL
« Reply #2 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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Can't set Host application for debugging DLL
« Reply #3 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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline DanRR

  • Multiple posting newcomer
  • *
  • Posts: 18
Re: Can't set Host application for debugging DLL
« Reply #4 on: September 25, 2015, 08:04:16 am »
Thanks!