Register
RemedyBG»Forums»Command line arguments
4 posts
Command line arguments
10 months, 1 week ago Edited by Castan on Jan. 27, 2020, 12:54 a.m. Reason: Initial post
Is there a public list of supported command line arguments? I tried looking but couldn't find one.
201 posts / 1 project

None

Command line arguments
10 months, 1 week ago
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
10 months, 1 week ago
Thank you!
4 posts
Command line arguments
3 months, 2 weeks ago Edited by ionut on Aug. 18, 2020, 4:16 p.m.
Thank you, this is useful.
Any chance to add a "--help" or similar command sometime in the future?
201 posts / 1 project

None

Command line arguments
3 months, 1 week ago
Sure thing. I can add a "--help" option.
Benjamin Pedersen
29 posts

Mathematician

Command line arguments
1 month, 2 weeks ago
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?
201 posts / 1 project

None

Command line arguments
1 month, 2 weeks ago
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.