| View previous topic :: View next topic |
| Author |
Message |
nexnex Newbie cheater
Reputation: 0
Joined: 22 Jun 2019 Posts: 13
|
Posted: Mon Jun 24, 2019 11:40 am Post subject: How to set a breakpoint on a newly created thread? |
|
|
Let's say I'm spawning a thread to run AA script using createThread.
If I set a breakpoint on a line in that script before spawning a thread it won't work.
| Code: | createThread(script)
script:
xor eax,eax // set bp, spawn a thread |
I've been advised to use following trick to bypass it:
Add infinite loop to a script, spawn a thread, place bp inside the loop.
What allows it to work is the fact that we place bp after spawning a thread.
| Code: | script_debug:
mov ecx,#1000
call Sleep
jmp script_debug // place bp here and replace with nop to allow it to exit the loop
jmp script |
I wonder if there is other simpler way to do it.
|
|
| Back to top |
|
 |
nexnex Newbie cheater
Reputation: 0
Joined: 22 Jun 2019 Posts: 13
|
Posted: Tue Jun 25, 2019 11:23 pm Post subject: |
|
|
| Nobody has similar problem? Or everybody do the same thing?
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 473
Joined: 09 May 2003 Posts: 25907 Location: The netherlands
|
Posted: Wed Jun 26, 2019 12:27 am Post subject: |
|
|
Use a software breakpoint
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
nexnex Newbie cheater
Reputation: 0
Joined: 22 Jun 2019 Posts: 13
|
Posted: Wed Jun 26, 2019 2:40 pm Post subject: |
|
|
Guess who feels stupid now. Thank you!
I'm still not sure why hardware bp does not work in a new thread.
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 473
Joined: 09 May 2003 Posts: 25907 Location: The netherlands
|
Posted: Wed Jun 26, 2019 2:50 pm Post subject: |
|
|
If using VEH debug the setting of the breakpoints happens after the thread has started execution
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
|