Jump to content
View in the app

A better way to browse. Learn more.

Tuts 4 You

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

"Run to user code" not working?

Featured Replies

Posted

Hello there,

1. Is it me or the "Run to user code" not working?

It seems that I could not make x64dbg pause at user code. Is it a bug?

2. Could you comment out the "SetForegroundWindow" in cbStep()?

I have a plugin which is a dialogbox that has 2 button "Run" and "Pause". When it is in running mode, it continuously calls "eSingleStep", SetForegroundWindow in cbStep() is called and makes the main window form active. Since then I could not press the "Pause" button on my dialogbox because the main window is always active and the dialogbox is always inactive.

Thank you.

SetForeground.png

Hey, next time please open issues at http://issues.x64dbg.com

Now, run to user also never worked for me. An alternative solution is to call "TraceIntoConditional mod.party(cip)==0"

I could comment it out, but generally I like this behavior. Also it is called before the plugin callback for a reason, just call the same thing on your dialog for every step to solve it :D

Probably I will make an option at some point, multiple people have complained about this already.

  • Author

Thank you. I will open issue next time.

Hopefully, you will make an option soon because calling SetForegroundWindow on dialog causes it active, but immediately it again switches to main window. It continues switching between dialog and mainwindow and I still could not click pause button.

11 hours ago, MarkJoy said:

Thank you. I will open issue next time.

Hopefully, you will make an option soon because calling SetForegroundWindow on dialog causes it active, but immediately it again switches to main window. It continues switching between dialog and mainwindow and I still could not click pause button.

This may help as a temporary solution to your problem in the meantime...

https://tuts4you.com/download.php?view.3551

Ted.

Hehe, Olly 1 has similar issue - when running script that's using breakpoints/single steps in a loop (simple example - tracing some VM), olly keeps calling SetForegroundWindow. This gets bloody annoying if you want to do something else while the script is running.

  • Author
16 hours ago, Teddy Rogers said:

This may help as a temporary solution to your problem in the meantime...

https://tuts4you.com/download.php?view.3551

Ted.

Thanks Ted. It's a good tool, unfortunately it's not working in my case. It's switching between mainwindow and my dialogbox even with superpin enable.

While waiting for mrexodia to add an option, I can compile a custom x64dbg that fits my use.

@kao: yeah, it's very annoying!! :))

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.