﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	resolution	keywords	cc	phab_field
2175	[JsDebugger] DEBUG is not defined.	RefinedCode		"In the javascript debugger, when I stop at a breakpoint, and try to open any of the variable branches in the values tab (locals,this,global) it never loads, and the spinner never goes away. So I opened chrome's developer tools and noticed whenever I try to open a branch, I get the following error:

{{{
Uncaught ReferenceError: DEBUG is not defined
}}}
This happens in the file ''source/tools/jsdebugger/js/src/debugger.js'' at lines:

-222 for the '''locals''' branch 

-240 for the '''this''' branch 

-204 for the '''global''' branch

Basically all three of those point to the same block of code, just repeated at different places:

{{{
error: function(jqXHR, textStatus, errorThrown)
{
	DEBUG(textStatus);
	DEBUG('error');
}
}}}
There is a function in the same file called 'debug()' not 'DEBUG()' which would probably be what it's looking for.

Since this is my first ticket I don't have enough knowledge of the process of submitting a fix for this yet but if someone gets to it before me that would be fine too.  I will try figuring out this patch system and if i submitted a ticket improperly please forgive me this is my first time with this."	defect	new	Should Have	Backlog	Non-game systems		Javascript, scripting		
