Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

command line ooptions like windbg or gdb #2201

Open
Byzero512 opened this issue Jul 24, 2019 · 6 comments

Comments

@Byzero512
Copy link

commented Jul 24, 2019

please add command line options to x64dbg, so that it can insert breaskpoints or exec commands when attach to a process use Cmd, just like windbg:

image

https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/windbg-command-line-options

@mrexodia mrexodia added the feature label Aug 9, 2019

@mrexodia

This comment has been minimized.

Copy link
Member

commented Aug 9, 2019

The problem with things like this is that it goes on indefinitely feature-wise. What is not yet covered by the debuggee initialization script and the existing command line to load an executable in the debugger?

@Byzero512

This comment has been minimized.

Copy link
Author

commented Aug 9, 2019

well, I think the two important things are:

  1. write commands in a file, and when init the debuger, it will exec the comand. like gdb's .gdbinit.
  2. provide a cmd that like "shell" on gdb to exec shell command.

maybe reference gdb though the picture posted is of windbg.

@mrexodia

This comment has been minimized.

Copy link
Member

commented Aug 9, 2019

Sure and what would be your use case for arbitrary programs? There already exists a feature to execute your commands when a specific debuggee is being initialized.

With regards to a shell there are no plans for any command line support, but I did implement a prototype that I will open source. If you want something more specialized it is definitely possible to write it. The executable x64dbg.exe is a very thin wrapper around x64dbg.dll and you can easily reimplement it as a console application with all the command line capabilities you need (for example by passing data to a plugin you write).

If it turns out that your custom solution is useful to the general public I will definitely consider implementing it upstream, but x64dbg is not gdb and will never be because it's designed with a very different philosophy.

@Byzero512

This comment has been minimized.

Copy link
Author

commented Aug 9, 2019

well,I use these feature because sometimes I will interactive with the debuggee with python, and use python subprocess module to let X64dbg attach to the debuggee.
and I want to insert some breakpoint when init the debugger that need cmd options.
as you mention, debugger can execute command when init, but I do not found this feature.

@mrexodia

This comment has been minimized.

@Byzero512

This comment has been minimized.

Copy link
Author

commented Aug 9, 2019

thanks.

@Byzero512 Byzero512 closed this Aug 9, 2019

@mrexodia mrexodia reopened this Aug 9, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.