﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,resolution,keywords,cc,phab_field
2175,[PATCH] DEBUG is not defined.,RefinedCode,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.

So I have created a patch which fixes this error.  A simple fix but I can get used to the patch submission process.  Hopefully I did it right as this is my first time submitting.",defect,new,Should Have,Alpha 15,Non-game systems,,"Javascript, scripting, debugger,review patch",,
