Debugging with Monodevelop can't find Javascript standard asset scripts

I’m using some references in my code to some standard assets (FPSInputController, MouseLook, CharacterMotor) and everything works fine from within Unity. When I go to debug from Monodevelop, however, the IDE can’t find any javascript files. I realized this because it can find MouseLook, but not FPSInputController or CharacterMotor which are all in the same folder, but only differ by the fact that the latter two are javascript.

Unity’s monodevelop debugging page says that javascript can be used for debugging, so that’s not the problem.

Here’s the code snippet from my file:

private MouseLook playerMouseLook;
private FPSInputController fpsInputController;
private CharacterMotor characterMotor;

After a compile, on the lower two, I get “The type or namespace name ‘FPSInputController’ could not be found (are you missing a using directive or assembly reference?)”

Is there a seperate using import for js files, or something else I need to do?

Thanks in advance,
PA

I would like to know the answer to this question as well.

Ok, i kinda solved this with help from people on #unity3d irc.

You have to go in MonoDevelop under Tools->Preferences->Unity->Debugger and do 2 things:

  • check Launch Unity Automatically and uncheck Build Project in MonoDevelop
  • set the Editor location to the current location of Unity.exe

After that follow the steps in here http://unity3d.com/support/documentation/Manual/Debugger.html and is probably going to work (at least for me does work until Unity editor crashes :smile: )

PS you have to close the unity editor if is open.

Thanks Scarpeius, I’ll give it a try :slight_smile: