Anyways, for the smart lot here is the diff for the CoreServer.
===================================================================
--- CoreServer.java    (revision 2448)
+++ CoreServer.java    (working copy)
@@ -90,7 +90,7 @@

     public void requestStart(cfSession session) {
         String queryString    = session.REQ.getQueryString();
-        if ( queryString != null && queryString.indexOf("_cfmlbug") != -1 )
+        if ( queryString != null && (queryString.indexOf("_cfmlbug") != -1
|| queryString.indexOf("_openbddebugger") != -1)  )
             return;



2014-09-07 19:39 GMT+05:30 nitish pandey <[email protected]>:

>
> The changes i did earlier are not required. Some other changes are
> required which I am providing in attached jars.
>  I don't know whom to submit the svn diffs to, if at all i can.
>
>
> The work arounds are trivial.
>  I am uploading modified debugger jar which basically has it's index.cfm
> modified.
>
> For those who want to understand the issue.
>
> 1.  It works  if you do something like this:
>
> <cfset what_happened = debuggerenable(true) ; />
>
> You could write a tiny cfm file with above constructs to switch on and off
> the debugger CoreServer.
> I have modified the debugger interface to have a button "Enable Debugger"
> and "Disable Debugger". This was not required a few years ago :)
>
> 2. However, running the debugger app before degugging is enabled (when
> not using OpenBD stock launcher) you will get an exception.Switch it ON
> using the above construct, the exception will go away. Or use the modified
> debugger index.cfm from the attached jar.
>
> 3. The calls from the debugger itself use a querystring param as a
> signature. This prevents debugger itself to be debugged (you don't want to
> saw the branch you are sitting on!). The method com.bluedragon.vision.
> engine.CoreServer.requestStart(cfSession session)  looks for _cfmlbug,
> whereas new debugger sends _openbddebugger in the querystring.
> What is the impact? One, you will always see one active session of the
> debugger in your debugger active session window. Secondly, the more
> dangerous one. If you accidently put a breakpoint in the debugger code then
> the debugger itself will stop there and you will not be able to advance the
> code because the debugger UI won't display. The attached bluedragon.jar
> has the fix for this.
>
> Happy Openbddebugging!
>
> -nitish
>
>
>
> 2014-09-07 1:02 GMT+05:30 nitish pandey <[email protected]>:
>
>> Andy and others,
>>
>>  I have solved the issue but i get a feeling that it is a work around.
>> Still it works for me.
>> There are two things i changed. First one is key and second one minor.
>>
>> 1. The issue that i found :
>>   The null pointer exception was coming in:
>>   com/bluedragon/vision/functions/GetActiveSessions.class line 68
>>   Iterator<VisionLiveSession>    it    =
>> activeSessions.values().iterator();
>>
>> activeSessions would always be null because
>> /com/bluedragon/vision/engine/CoreServer.class
>> was not getting enabled (BTW, <enabledisable /> tag is supposed to do
>> that but i have never used it).
>>
>> And how i fixed it:
>>
>>  so i took the code from EnableDisable.class (of the same package) and
>> copied the CoreServer enabling bit to
>> com.bluedragon.vision.VisionExtensions.java right after line 92::
>>           cfEngine.thisInstance.registerRequestListener(
>> CoreServer.thisInst );
>>           coreserver.enable(true);
>>           PluginManager.getPlugInManager().startRequestStats();
>>
>> 2. To avoid debugger frames calls getting added to active debug sessions
>> i changed the Query string from _cfmdebug to _openbddebugger in
>> CoreServer.java at line 107.
>>   This is not significant because any session getting added to debugger
>> activesessions only lasts as long as any request. And if you don't have a
>> breakpoint in any of the debugger cfm files these sessions get added to
>> activesessions and then removed a few milliseconds later. So no sweat.
>>
>> Attaching both the modified files.
>>
>> Happy Debugging Guys!
>>
>> Nitish Pandey
>>
>>
>> 2014-08-25 14:24 GMT+05:30 Andy Wu <[email protected]>:
>>
>>>  Nitish, there's a lot of code there so I can understand it's bit hard
>>> to find but I believe what you're looking for is in com.bluedragon.vision.
>>>
>>>
>>> On 20/08/2014 13:32, nitish pandey wrote:
>>>
>>> @Andy the source does not have the source fo rthe debugger. If you or
>>> someone else can help me with it...i can try to fix it.
>>>
>>>
>>> 2014-08-17 21:45 GMT+05:30 nitish pandey <[email protected]>:
>>>
>>>> This source doesn't seem to include and build the cf-debugger jar. So i
>>>> can't get to fixing it. I hope it is not required and someone tell me how
>>>> to make use of it.
>>>>
>>>>
>>>> 2014-07-29 21:50 GMT+05:30 Andy Wu <[email protected]>:
>>>>
>>>>  I'd suggest either downloading the source code. There is a link on the
>>>>> downloads page but here it is:
>>>>>
>>>>>     http://openbd.org/download/3.1/openbluedragon-src-3.1.zip
>>>>>
>>>>> Or for the latest code from the nightly build
>>>>>
>>>>>     http://openbd.org/download/nightly/openbluedragon-src.zip
>>>>>
>>>>> If you're familiar with svn, then grab it directly:
>>>>>
>>>>>     http://openbd.org/manual/?/svn
>>>>>
>>>>>
>>>>> On 29/07/2014 16:28, nitish pandey wrote:
>>>>>
>>>>>> I could have gone further but the i couldn't locate the openbd source.
>>>>>>
>>>>>
>>>>>  --
>>>>> --
>>>>> online documentation: http://openbd.org/manual/
>>>>> http://groups.google.com/group/openbd?hl=en
>>>>>
>>>>> --- You received this message because you are subscribed to the Google
>>>>> Groups "Open BlueDragon" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to [email protected].
>>>>>  For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>>
>>>>
>>>>  --
>>>> -Nitish
>>>> "Imagination is more powerful than Knowledge"
>>>>
>>>
>>>
>>>
>>> --
>>> -Nitish
>>> "Imagination is more powerful than Knowledge"
>>>  --
>>> --
>>> online documentation: http://openbd.org/manual/
>>> http://groups.google.com/group/openbd?hl=en
>>>
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "Open BlueDragon" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>>
>>>  --
>>> --
>>> online documentation: http://openbd.org/manual/
>>> http://groups.google.com/group/openbd?hl=en
>>>
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "Open BlueDragon" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> -Nitish
>> "Imagination is more powerful than Knowledge"
>>
>
>
>
> --
> -Nitish
> "Imagination is more powerful than Knowledge"
>



-- 
-Nitish
"Imagination is more powerful than Knowledge"

-- 
-- 
online documentation: http://openbd.org/manual/
 http://groups.google.com/group/openbd?hl=en

--- 
You received this message because you are subscribed to the Google Groups "Open 
BlueDragon" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to