Author Topic: How to run your server in DEBUG  (Read 3144 times)

Archon

  • UO Central - Owner
  • Administrator
  • Full Member
  • *****
  • Posts: 122
    • View Profile
    • UO Central
How to run your server in DEBUG
« on: June 23, 2014, 11:26:44 PM »
How to run your server in DEBUG Mode by Charon

NOTE: This works for RunUO 1.0 AND RunUO 2.0
NOTE: This was made using Windows XP, it may be different on other versions of Windows.
 
Hello, this tut will show you how to run your server in debug mode

Steps to a debug server:
 1. Right click Server.exe or RunUO.exe and click 'Create Shortcut'
 Screen Shot: http://img274.imageshack.us/img274/2228/createshortcut4jc.png
 
2.Right click the new shortcut, and click properties.
 Screen Shot:http://img414.imageshack.us/img414/4997/shortcutprops2vj.png
 
3.On the newly opened window, look for the word Target. Go to the very left end of the target box, and put the following after the last quotation.

-debug

http://www.runuo.com/community/threads/how-to-run-your-server-in-debug.70062/
« Last Edit: June 23, 2014, 11:29:29 PM by Archon »
UO Central - Owner

Archon

  • UO Central - Owner
  • Administrator
  • Full Member
  • *****
  • Posts: 122
    • View Profile
    • UO Central
Re: How to run your server in DEBUG
« Reply #1 on: June 29, 2014, 11:14:17 PM »
How to run Debug mode

make a shortcut of the runuo icon on your desktop.

Then right click that shortcut, go to properties.

About half way down theres a text box that says Target: and has the path of your server probably something like "C:\Program Files \RunUO\RunUO.exe" at the very end of that line, add this -debug so it would look like: "C:\Program Files \RunUO\RunUO.exe" -debug Then if/when it crashes you will get a detailed report and it will help pinpoint the problem script(s)

http://www.runuo.com/community/threads/how-to-run-your-server-in-debug.70062/


Jeff Says:
3 ways, debug from inside visual studio. Use visual studio's attach debugger and attach to the running server, or add Console.WriteLine's to the scripts to output variables to the console.


Vorspire says:

How to run the server in debug mode on all Windows operating systems without the need for using command prompt (directly);

Create a new text file and name it "RunUO_Debug.bat" - make sure the file extension is ".bat" and not ".txt".
Right click and EDIT the batch file, it should open in notepad.

All you have to do now is add one line;

RunUO.exe -debug

(RunUO.exe may be under another name, like "Server.exe", but you should know this now)

Save the new batch file and close Notepad.
MOVE the batch file to the same folder as RunUO.exe.

Now whenever you need to run your server in debug mode, simply double-click the "RunUO_Debug.bat" file and it will load RunUO in debug mode.

Batch files (*.bat) are a nice quick way to interact with DoS Command Prompt without having to load an instance of Command every time you need to use it.

UO Central - Owner