Shoutbox

Debug Window - File Name - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Debug Window - File Name (/showthread.php?tid=64095)

Debug Window - File Name by Dempsey on 07-27-2006 at 03:13 PM

Question for Patchou here...

When an error occurs in a script and the debug window says the line number, would it also be possible to say the filename that caused it?  If you have more than one JS file you have to guess which line 67 the error is on for example.


RE: Debug Window - File Name by Mnjul on 07-27-2006 at 03:21 PM

Great, I'd like to see the file name that caused the error too (Y)


RE: Debug Window - File Name by deAd on 07-27-2006 at 03:22 PM

Same here (y) ... and there seems to be some problems with the debugger sometimes, I got an error on line 51567246 once :P


RE: Debug Window - File Name by cooldude_i06 on 07-27-2006 at 07:22 PM

Also when tracing a null value it gives you "type mismatch". You can still trace it if you use

code:
Debug.Trace(null + "");

Unless that is the way it is supposed to work, it would be great null values could be traced by default.
RE: Debug Window - File Name by deAd on 07-27-2006 at 07:33 PM

No, that's how it's supposed to work. You can't put Null with a String, they're two different types.


RE: Debug Window - File Name by Intosia on 07-27-2006 at 08:04 PM

Yeah that would be handy indeed :)


RE: Debug Window - File Name by elektra on 07-27-2006 at 08:19 PM

the pluslive says there is errors on my scripts and there fine!!!


RE: Debug Window - File Name by deAd on 07-27-2006 at 08:20 PM

That's got nothing to with this :P and how do you know it's fine? ... if the debugger says there's an error, there most likely is.


RE: Debug Window - File Name by cooldude_i06 on 07-28-2006 at 01:11 AM

quote:
Originally posted by deAd
No, that's how it's supposed to work. You can't put Null with a String, they're two different types.

I dont think you understood what I said deAd, Debug.Trace(null + "String") does work, Debug.Trace(null) doesnt. And besides Debug.Trace should be able to receive all types for input, because it is in fact - debugging.
RE: Debug Window - File Name by deAd on 07-28-2006 at 01:22 AM

I see what you mean. Nevermind :P


RE: RE: Debug Window - File Name by cloudhunter on 07-28-2006 at 01:32 AM

quote:
Originally posted by penguindude
the pluslive says there is errors on my scripts and there fine!!!


Or more likely there is an error and you just haven't understand that there was one :P

I'd like to see this feature too, ran into this snag a bit ago :P

Cloudy
RE: Debug Window - File Name by matty on 07-28-2006 at 02:26 AM

This would be a very nice idea because when your script folder looks like this :

Folder PATH listing
C:\PROGRAM FILES\MESSENGER PLUS! LIVE\SCRIPTS\SCREENSHOT SENDER 4
|   WndAbout.handler.js
|   WndAdvanced.handler.js
|   WndAllContacts.handler.js
|   WndCountdown.handler.js
|   WndCountdownDisplay.handler.js
|   WndFTPUpload.handler.js
|   WndGeneral.handler.js
|   WndMultiChat.handler.js
|   WndOverlay.handler.js
|   WndPref.handler.js
|   WndPreview.handler.js
|   WndRecentImages.handler.js
|   WndScreenshotViewer.handler.js
|   WndWebcam.handler.js
|   Screenshot Sender 4.plsc
|   ScriptInfo.xml
|   ss4.functions.js
|   ss4.gdip_functions.js
|   ss4.gdip_variables.js
|   ss4.js
|   ss4.menu.handler.js
|   ss4.preferences.js
|   ss4.registry.js
|   ss4.update.js
|   ss4.variables.js
|   
\---Images
|       prntscrn_key.png
|       server.png
|       logo.png
|       pnggif.png
|       jpg.png
|       bmp.png
|       no_screenshots.png
|       1no_image.png
|       no_image.png
|       
\---Interface
        WndScreenshotViewer.xml
        WndPref.xml
        WndAbout.xml
        WndGeneral.xml
        WndOverlay.xml
        WndCountdown.xml
        WndWebcam.xml
        WndAdvanced.xml
        WndFTPUpload.xml
        WndMultiChat.xml
        WndCountdownDisplay.xml
        WndPreview.xml
        WndRecentImages.xml
        WndAllContacts.xml
        WndUpdate.xml

It would sure be nice to know where the error comes from.