Last cvs - how to debug python
#1
i used to debug my python scripts using the debug window when pushing white button of the pad after script stopped
but now ? where is the white button debug function Huh?

please tell me how to debug... is it a wish from the dev team to stop the use of this button ??
Reply
#2
it's mapped globally to a different function which may be the issue.

you can add a mapping to the show file info action (id 11) in keymap.xml. obviously you'd have to add it to a different button than white (as it's already in use).
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#3
you can only use this button from within the script screen.
so if you start script from my files you won't be able to use the debug button
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#4
(darkie @ dec. 13 2004,22:53 Wrote:you can only use this button from within the script screen.
so if you start script from my files you won't be able to use the debug button
no sorry but it is false...
i used to have the 04 10 27 version and what you say darkie was right.
but when i upgraded for the 04 12 01 version, it was not true anymore... white button was not working as desired in the script section (submenu) (you are right anyway, it doesn't work in the file section)
today i upgraded for the 04 12 13 version, and it is the same. no white button in the script section by the submenu.

Quote:it's mapped globally to a different function which may be the issue.

you can add a mapping to the show file info action (id 11) in keymap.xml. obviously you'd have to add it to a different button than white (as it's already in use).
ok i will try this if i first understand Wink (hey ! i'm french lol)
Reply
#5
we were both right combined. (although darkie a bit more so)

the reason it doesn't work is because there is no key mapped to it.

you need to add an entry for the scripts window to keymap.xml and then map the white key to the action with id 11. it used to be a global mapping (that would work from the scripts window) but when the context menu came along (assigned to the white button) it no longer functioned.

add this:

Quote: <window>
<description>my scripts specific actions</description>
<id>20</id>
<action>
<description>show debug python info</description>
<id>11</id>
<gamepad>white</gamepad>
<remote>info</remote>
<keyboard>i</keyboard>
</action>
</window>

to keymap.xml and it should do the trick. lmk if it works (from the scripts window!Wink and i'll add it to cvs.

cheers,
jonathan
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#6
thx a lot !!!!!
i try this and tell you !
see ya !

==========
yesss ! great !
thanks a lot !! i get access to the debug window when i am in the script section
well done !
Reply
#7
it is not working totall y!
i can't clear the debug window while pushing white button again...
shall i do this :
Quote:<window>
<description>my scripts specific actions</description>
<id>20</id>
<action>
<description>show debug python info</description>
<id>11</id>
<gamepad>white</gamepad>
<remote>info</remote>
<keyboard>i</keyboard>
</action>
<action>
<description>clear debug python info</description>
<id>11</id>
<gamepad>white</gamepad>
<remote>info</remote>
<keyboard>i</keyboard>
</action>
</window>
Reply
#8
ok, now that i look at the code, you can actually get the information globally - not just from the scripts window.

you need to add this to keymap.xml:

Quote:<window>
<description>my scripts info specific actions</description>
<id>2004</id>
<action>
<description>clear debug python info</description>
<id>11</id>
<gamepad>white</gamepad>
<remote>info</remote>
<keyboard>i</keyboard>
</action>
</window>

that will do the clearing of the info (the info window has id 2004, and the action id is 11)

to be able to check the python script debug window from anywhere, you'll need to add:

Quote:<action>
<description>bring up debug python info</description>
<id>xbmc.activatewindow(2004)</id>
<gamepad>white</gamepad>
</action>

somewhere in the <global> section of keymap.xml.

note that whatever button you used will be a global mapping - make sure you don't have anything else on that button.

cheers,
jonathan
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#9
ok
thanks a lot ! it seems to work.
not tested if i use the white button i.e in video mode....
anyway, i can get the debug window and i can raz it
thx
Reply
#10
no problem.

perhaps you could add the information to the online manual for us, so that next time someone asks the info is there?

cheers,
jonathan
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#11
maybe i can find some time to do it Wink
please tell me where to find it i'm a bit lazy to search...

anyway, something is not very nice... i can get the debug screen wherever i am (video, programs... everywhere)

maybe it stills something to change in the keymap
Reply
#12
yup, that's right.

keymap.xml is either a single screen (how you originally had it) or global (the code snippet i posted above).

the wiki is in my sig. just add a link to this thread if you are too lazy to copy + paste :p
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply

Logout Mark Read Team Forum Stats Members Help
Last cvs - how to debug python0