jquery - How to debug Greasemonkey script on Firefox 30? -
jquery - How to debug Greasemonkey script on Firefox 30? -
i've been developing javascript snippet youtube uses greasemonkey, , imports bootstrap , jquery libraries. application has add together button each 1 of search list results , when user clicks it, must bring user uploaded videos channel. i've tested button , works on firefox 29.
nevertheless, updated firefox version 30, , i'm unable see/debug code wrote, although firefox executes it. i'd know, if there solution issue?
here code if seeing it:
// ==userscript== // @name requerimiento2-2-guille.user.js // @description rodrigo // @include http://www.youtube.com/* // @include https://www.youtube.com/* // @grant none // ==/userscript== /* here it's bootstrap , jquery code pasted (i know should done include).*/ var boton='<button style="float:right;" type="button" class="vervideos btn btn-lg yt-uix-button yt-uix-button-size-default yt-uix-button-primary">'+'<span class="glyphicon glyphicon-list"></span>ver videos del usuario'+ '</button>'; $(function(){ iniciarscript(); }); function iniciarscript(){ $("#search-results li.yt-lockup div.yt-lockup-content").before(boton); $("#vervideos").click(mostrarvideosusr); } function mostrarvideosusr(){ alert("se pulso el boton!"); }
pd: i've tried starting firefox other user profile, keeps not working.
the way found (v.42) utilize remote debugging system. if want reproduce:
create profile without addon considerably increment speed. install greasemonkey addon on it. use remote debugging: https://developer.mozilla.org/en-us/docs/tools/remote_debugging/debugging_firefox_desktop use firefox profile start webide, no success in debugging same profile. distant debug profile in 1..while selecting go "open app" > "runtime apps", select main process.your script appear in debugger tab under "file://". able set breakpoints, spy, ...
jquery twitter-bootstrap debugging firefox greasemonkey
Comments
Post a Comment