Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Coding Corner
You last visited: Today at 18:53

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Questions about debugging

Discussion on Questions about debugging within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2008
Posts: 961
Received Thanks: 648
Questions about debugging

Hello,

I'm trying to learn C++ and assembly basics,in addition,I've been playing around with Ollydbg and faced some problems:
-Can't search all constants when i'm attaching to the process(sometimes)
Error message: "unable to read memory of debugged process XXXX-XXXX"

-problem in breakpoints: for example I set breakpoints on 15 commands..1 by 1..It passes the first 10 commands without pausing,but when after it pauses in the 11th command,it pauses again in the previous commands which confuses me which ones are the related offsets.

-Is there a more distinct way to figure the offsets for a certain function instead of setting a breakpoint on every search result?some search results"only PUSH" are over 100 results.

-Am I doing it right?search for all constants -> hexadecimal XX->set breakpoint on each push+mov commands and hit start?because sometimes the application bugs after changes made in the assembler and it won't run again.

I apologize if my questions weren't accurate enough to be understood.
magicanoo is offline  
Old 02/09/2013, 10:26   #2
 
Schickl's Avatar
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,064
Received Thanks: 539
Quote:
Originally Posted by magicanoo View Post
-problem in breakpoints: for example I set breakpoints on 15 commands..1 by 1..It passes the first 10 commands without pausing,but when after it pauses in the 11th command,it pauses again in the previous commands which confuses me which ones are the related offsets.
If it doesn't pause there, the commands were not executed.
There might be a JMP command somewhere.
INT3 Breakpoints only work on code that is executed, if you want to pause at points where the process accesses specific memory regions you will have to use Memory/Hardware breakpoints(the number of hardware breakpoints is very limited)

Quote:
-Is there a more distinct way to figure the offsets for a certain function instead of setting a breakpoint on every search result?some search results"only PUSH" are over 100 results.
Don't really know what you mean

Quote:
-Am I doing it right?search for all constants -> hexadecimal XX->set breakpoint on each push+mov commands and hit start?because sometimes the application bugs after changes made in the assembler and it won't run again.
Normally INT3 breakpoints shouldn't make any troubles
BUT code can be dynamic and if you set a breakpoint there and the code is modified afterwards the breakpoint is lost(obviously) and olly will tell you so
Schickl is offline  
Thanks
1 User
Old 02/09/2013, 11:29   #3
 
elite*gold: 0
Join Date: Feb 2008
Posts: 961
Received Thanks: 648
Quote:
Originally Posted by Schickl View Post
Don't really know what you mean
For example,I want to know which commands were executed without setting breakpoints,e.g. in 15seconds or until i stop it manually..Is it possible?
magicanoo is offline  
Old 02/09/2013, 11:50   #4
 
Schickl's Avatar
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,064
Received Thanks: 539
Quote:
Originally Posted by magicanoo View Post
For example,I want to know which commands were executed without setting breakpoints,e.g. in 15seconds or until i stop it manually..Is it possible?
I doubt it
And even if it would be possible you would get a lot(and i mean it) of commands
You wouldn't want to go through

There's one thing you can do, which is a bit similar to what you need
It's a run trace
If you enable this olly will just go through every command
That's painfully slow!

Just make a breakpoint and fight your way through everything
Schickl is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
How to Use Charles Web Debugging for BP
09/13/2012 - Facebook - 0 Replies
Hey guys i have made a video on how to use Charles for Battle Pirates it is my video so please don't be to critical, and since You Tube Flagged both of my videos i uploaded within 30 minutes of making it I'll have an link of this video for you to download just click LInk Here
JIT debugging
01/12/2012 - DarkOrbit - 2 Replies
guys can any one tell me how to enable JIT debugging it ive me this error ************** JIT Debugging ************** To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled. For example:
Debugging
07/16/2010 - Grand Chase - 0 Replies
D quote above is quoted from 745896321. As stated, it is possible to run d GCHAX (by makim) on a 64bit-running OS ... but does any1 care to explain how ?
debugging
01/28/2010 - Last Chaos - 4 Replies
hi.. hab probleme mit ollydbg und last chaos also: was ich bisher mache .. lc starten, einloggen, olly starten, attachen nach dem attachen funktioniert manchmal alles, meistens jedoch bleibt olly bei einer exception hängen und das spiel stürzt ab. hat LC eine anti debug methode, oder mache ich etwas anderes falsch^^? wenn ja: wie kann ich die bypassen =) ? mfg d0m



All times are GMT +2. The time now is 18:53.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.