Re: embedding with debugging support
Cristian Tarsoaga <[email protected]> Tue, 04 Aug 2009 17:32:00 +0300
| Newsgroups | gmane.comp.mozilla.devel.jsdebugger |
|---|---|
| Message-ID | <[email protected]> |
Hi Gijs,
I have used these docs: https://wiki.mozilla.org/Embedding/NewApi/Win32 to start.
I downloaded xulrunner sources (from here: http://releases.mozilla.org/pub/mozilla.org/xulrunner/releases/1.9.1/source/) and built them.
I am using a slightly modified version of the simple demo app that comes with the xulrunner source tree inside the embedding/tests/winEmbed folder (it runs on Windows)
My xulrunner build includes also dom inspector and venkman as extensions.
(there are some compile time flags that may be used in .mozconfig to determine whether these will be included in the resulting build)
I have full XUL support and Javascript support in that test application. I was able to open some XUL samples or html pages using javascript with no problems.
I just mentioned that I do not have any XUL experience myself, hoping that when/if someone replies will give me all the details needed to setup anything that involves a XUL
application :-)
In the end, I was able to start venkman by loading this url from within the demo application: chrome://venkman/content
[source: old message from this forum, see http://osdir.com/ml/mozilla.devel.jsdebugger/2002-04/msg00000.html]
But it does not run properly: I was not able to open any http/file url
I could also not open DOM Inspector at all...
thanks :-)
Chris
Gijs Kruitbosch wrote:
> Cristian Tarsoaga wrote:
>> Hello,
>>
>> My name is Chris and I would like to embed Mozilla into a C++ app.
>> I have managed to do this, but I need to have some debugging support
>> (for html, javascript).
>>
>> The only way I know of, is to try to embed some extensions like
>> venkman/dom inspector.
>>
>> The documentation I found for this seems old/confusing. I was not able
>> to embed these after reading this link:
>> https://developer.mozilla.org/en/XULRunner_tips
>>
>> Is there any other information available?
>>
>> Note: I do not use a xul app and I am also not familiar with xul. So
>> far, all I need is a webbrowser window in which I could click and say
>> 'Inspect DOM, debug
>> javascript....", something like this.
>>
>> Thanks a lot
>> Chris
>
> Hi Chris,
>
> Both Venkman and DOMI are XUL applications. Using either will require
> some sort of XUL support. I myself am not familiar with embedding, so
> can't give you much advice there... How are you embedding Mozilla in
> your C++ app? And what platforms are you running this on?
>
> ~ Gijs