On Sun, Dec 13, 2009 at 7:42 PM, Mark Roddy <[email protected]> wrote:
> On Sun, Dec 13, 2009 at 7:18 PM, John J. Foerch <[email protected]> 
> wrote:
>> On Sun, Dec 13, 2009 at 06:55:02PM -0500, Mark Roddy wrote:
>>>
>>> 1) How can I show error output of my RC file under Windows?  This
>>> would have been much easier to debug had I had this info.
>>>
>>
>>
>>  I would really like to know... Any windows users willing to investigate
>> this issue thoroughly would be greatly appreciated.
>>
>>
>>> 2) Is there a way to determine what the platform is within my RC file
>>> so I can set the variable depending on the system?  Something like:
>>> if IsWindows:
>>>     cwd=make_file('C:\\Documents and Settings\\mark\\Desktop')
>>> else:
>>>     cwd=make_file('/home/mark/Desktop')
>>>
>>
>>
>>  No need to do that.  Just do this:
>>
>>    cwd=get_home_directory();
>>
>>  Then you can make relative paths platform-independently like this:
>>
>>    cwd.append("downloads");
>>
>>  Refer to the MDC docs about nsILocalFile and nsIFile for more
>> information about manipulating these objects.
>>
>> --
>> John Foerch
>>
>
> John,
> Thanks for the tip!  I'm going to try and see if I can figure out the
> lack of debugging info in the shell under Windows as it took me almost
> 20 minutes to figure out I had a typo in my conkerorrc when changing
> it to use get_home_directory() (modern compilers have spoiled me), and
> I'm sure I'm going to have to deal with this issue again in a few
> weeks when I have to reboot into Windows again.  If I find anything
> uselful I'll get it to you.
>
> -Mark
>


John,
I found an answer to the lack of debugging info on Windows.
Based on this reference:
https://developer.mozilla.org/en/Debugging_a_XULRunner_Application

If you pass the '-console' option when starting Conkeror on Windows an
extra shell pops up with the debugging output. I put a typo in my rc
file to test and confirmed that this works.

-Mark
_______________________________________________
Conkeror mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/conkeror

Reply via email to