Author Topic: Does CB Nightly debugger plugin work with parameters?  (Read 258 times)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7841
Does CB Nightly debugger plugin work with parameters?
« on: September 25, 2026, 11:44:17 pm »
Does CB Nightly debugger plugin work with parameters?

I have not used CB debugger plugin with parameters in a long time does it work still?

"Project -> Set programs' arguments..." does not work for me.

Tim S.
« Last Edit: Yesterday at 03:03:09 am by stahta01 »
C Programmer working to learn more about C++.
On Windows 11 64 bit using MSys2 UCRT64.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6239
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Does CB Nightly debugger plugin work with parameters?
« Reply #1 on: Yesterday at 09:45:35 am »
Hi, I just did a test. From the debugger plugin's log message, I can see a line like below:

Code
[debug]>>>>>>cb_gdb:
[debug]> directory F:/code/image-label-gui/
[debug]Source directories searched: F:/code/image-label-gui;$cdir;$cwd
[debug]>>>>>>cb_gdb:
[debug]> set args abc
[debug]>>>>>>cb_gdb:
[debug]> run
[debug]Starting program: F:\code\image-label-gui\bin\Debug\ImageLabelGui.exe abc
...

So, the argument "abc" is passed to the debugee as I can see.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7841
Re: Does CB Nightly debugger plugin work with parameters?
« Reply #2 on: Yesterday at 04:39:44 pm »
Thanks for the answer; so, it is likely working and it is user error on my part.

Tim S.
C Programmer working to learn more about C++.
On Windows 11 64 bit using MSys2 UCRT64.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2976
Re: Does CB Nightly debugger plugin work with parameters?
« Reply #3 on: Yesterday at 07:20:38 pm »
Thanks for the answer; so, it is likely working and it is user error on my part.

Tim S.

Turn on Debugger "Full Log" in MainMenu/Settings/Debugger/Common to see what the debugger plugin did with your arguments.
« Last Edit: Yesterday at 07:32:11 pm by Pecan »