Difference between revisions of "User:Oldman"

From ReactOS Wiki
Jump to: navigation, search
m
 
(234 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
<span style="font-size:130%;">'''NOTE''': The layman's guides have been migrated and separated into [https://reactos.org/wiki/User:Oldman/A_layman's_guide  Individual Layman's guides]</span>
  
== A layman's guide - getting a debug log. ==
+
This one page of all the guides has now been removed
  
A layman's guide to using the Ros debugger to get a debug log.
+
<hr>
This mini guide assumes that you have got the relevant hardware (cable, second computer with Putty installed) and that you know to start ReactOS in (Debug) mode.
 
  
=== Some vital settings in Putty. ===
+
==Links==
In '''Category''' select '''Session''' and set the following to these values:
+
More tutorials can be found at:  
<br />
 
'''Serial line = COM1'''
 
<br />
 
'''Speed = 115200'''
 
<br />
 
'''Connection type = Serial'''
 
  
Back to '''Category''' and select '''Logging'''
+
https://www.reactos.org/forum/viewforum.php?f=22
In '''Session logging:''' check '''All session output'''. Note where Putty saves the log file and change if required.
 
  
Save the above changes in putty with a name of your choice (there is a input for this), it can then be loaded the next time.
+
https://www.reactos.org/wiki/Category:Tutorial
  
The ReactOS debugger has some commands that can be used from the command line, they are typed into the ReactOS test computer, but will be viewed in the terminal window (i.e putty) on the second computer, with the exception of '''Alt+k''', which gives you the command prompt and looks like this: '''kdb:>'''
+
https://www.reactos.org/wiki/Subversion/Using_TortoiseSVN
  
=== Commands: ===
+
https://www.reactos.org/wiki/Testing_Introduction
'''Alt+k''' - this command halts the system so you can enter commands into the debugger.
 
<br />
 
'''bt''' - this command gives a backtrace; use it when the ROS enters the debugger (see below).
 
<br />
 
'''cont''' - this is short for continue.
 
<br />
 
'''set condition '''*''' first always''' - this command tells the ROS to enter the debugger on the first exception.
 
  
The following is an example of when the ROS enters the debugger:
+
https://www.reactos.org/wiki/Build_Environment
<br />
 
'''<span style="color:blue">Entered debugger on last-chance exception (Exception Code: 0xc0000001) (Unknown/User defined exception)<br />kdb></span>'''
 
 
 
=== Getting a backtrace: ===
 
When ROS enters the debugger, then enter '''bt''' at the command prompt, like so:
 
'''kdb:> bt''' and press '''enter''' on the keyboard.
 
You may see this
 
<br />
 
'''--- Press q to abort, any other key to continue ---'''
 
<br />
 
If you do see it, then just press any key other than q, it may show again, just repeat until you are back at the command prompt of '''kdb:>'''
 
 
 
=== Getting a more detailed backtrace: ===
 
When you see debug info streaming into putty(<span style="color:red">1</span>), then press '''Alt+k''' on your keyboard, then type '''set condition '''*''' first always''' at the command prompt, then type '''cont'''. This will make the ROS enter the debugger on every exception, which it will do many times, and each time you will have to type '''bt''' then '''cont'''.
 
 
 
(<span style="color:red">1</span>) If you are testing an app, then it is best to wait until you are ready to run the app before doing this, else you will be overwhelmed with the ROS entering the debugger.
 
 
 
=== Advice: ===
 
Don't use '''Alt+k''' and '''bt''' to get a '''backtrace''', when the ROS does not automatically enter the debugger, thinking you are going to get some more useful info for the dev's to work with, which I have done in the past; the info is useless!
 
 
 
Putty names the file putty.log, it would be a good idea to re-name it, because the next time that putty is run, it will over-write the file called "putty.log". I use something descriptive, in this format "'''''app name-Ros revision number'''''", for example "'''gimp-1.0.4-R65099'''".
 

Latest revision as of 13:12, 25 March 2020