RemedyBG»Forums
4 posts
Command line arguments
Edited by Castan on Reason: Initial post
Is there a public list of supported command line arguments? I tried looking but couldn't find one.
306 posts / 1 project
None
Command line arguments
Castan
Is there a public list of supported command line arguments? I tried looking but couldn't find one.


Here you go:

Usage

1
 remedybg.exe [exe-filename | rdbg-filename] 


Executing remedybg.exe without any command-line parameters will launch RemedyBG with an unnamed
session. You can fill in the necessary details for launching an executable in the Session menu.

exe-filename: Specify an executable to debug. This will auto-populate the session's "Command".

rdbg-filename: Specify an .rdbg session file to load. This will reload the "Command", "Command
Arguments", "Working Directory", any files that were opened, and any breakpoints that were set.

Driving an existing instance

An existing instance of RemedyBG can be driven via the command-line. Following are the currently
supported commands and their arguments. Optional arguments are enclosed in brackets '[]'.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
   remedybg.exe open-session session-filename
   remedybg.exe open-file filename [line-number]
   remedybg.exe close-file filename
   remedybg.exe start-debugging
   remedybg.exe stop-debugging
   remedybg.exe attach-to-process-by-id process-id
   remedybg.exe continue-execution
   remedybg.exe add-breakpoint-at-file filename line-number
   remedybg.exe remove-breakpoint-at-file filename line-number
   remedybg.exe add-breakpoint-at-function function-name
   remedybg.exe remove-breakpoint-at-function function-name



4 posts
Command line arguments
Thank you!
8 posts
Command line arguments
Edited by ionut on
Thank you, this is useful.
Any chance to add a "--help" or similar command sometime in the future?
306 posts / 1 project
None
Command line arguments
Sure thing. I can add a "--help" option.
Benjamin Pedersen
46 posts
Mathematician
Command line arguments
I have a few times unconsciously written:
1
remedybg exe-filename arg...

Instead of starting a session with command exe-filename with arguments arg..., it just starts an empty session.

Would be possible to implement the former?
306 posts / 1 project
None
Command line arguments
If you add the "exe" extension to the executable, it should do what you want.

I will make it so Remedy tests for the given arg + ".exe" as a convenience.