x


Best way to Debug Network games? (multiple instances of executable)

I was wondering, what is the best way of debugging network games?

Back when I was using DarkBasic, I would just re-run the temporary executable created whenever I compiled the game, and work from there. However I cant find the executable created by Unity whenever you run the game - I thought it would naturally be in the TempbinDebug directory (on Windows), but it isnt there (its not hidden). Does anyone know where it is, or if it exists?

I read here that a way of doing this is by duplicating your entire project, but this seems overkill.

How do you guys do it? Any help would be appreciated :)

more ▼

asked Dec 09 '11 at 04:59 AM

Aralox gravatar image

Aralox
76 6 7 8

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Unity doesn't execute your game from a standalone- the file that gets run is the .unity scene file, and the program that runs it is the Unity Editor. To debug your multiplayer game, use 'Build and Run' and then find the log file that is outputted by the executable (it'll be somewhere in your user directory) to get debug information. The reason you never leave the Editor when you are creating your games is because the Editor is also a wrapper for the Unity runtime environment.

more ▼

answered Dec 09 '11 at 05:30 AM

syclamoth gravatar image

syclamoth
14.8k 7 15 80

I see... Oh and when I said 'debug', im not referring to the log file, I mean just the debugging procedure in general, where you run two instances of the executable and play around to see if everything is working alright.

I found a pretty good way where i would just build and run my solution, then run the game in the editor too. (and if i want to, i can run more instances of the game using the executable created in the project directory). Ill wait and see if anyone else has a solution too, before i post an answer to my own question :P

Dec 09 '11 at 07:11 AM Aralox
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x701
x291
x239
x28
x17

asked: Dec 09 '11 at 04:59 AM

Seen: 1140 times

Last Updated: Dec 09 '11 at 07:11 AM