Last cvs - how to debug python - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26) +--- Thread: Last cvs - how to debug python (/showthread.php?tid=8190) |
- solexalex - 2004-12-14 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 ? please tell me how to debug... is it a wish from the dev team to stop the use of this button ?? - jmarshall - 2004-12-14 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). - darkie - 2004-12-14 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 - solexalex - 2004-12-14 (darkie @ dec. 13 2004,22:53 Wrote:you can only use this button from within the script screen.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.ok i will try this if i first understand (hey ! i'm french lol) - jmarshall - 2004-12-14 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> to keymap.xml and it should do the trick. lmk if it works (from the scripts window! and i'll add it to cvs. cheers, jonathan - solexalex - 2004-12-14 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 ! - solexalex - 2004-12-15 it is not working totall y! i can't clear the debug window while pushing white button again... shall i do this : Quote:<window> - jmarshall - 2004-12-15 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> 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> 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 - solexalex - 2004-12-15 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 - jmarshall - 2004-12-15 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 - solexalex - 2004-12-16 maybe i can find some time to do it 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 - jmarshall - 2004-12-16 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 |