I use PhoneGap Build, developing in a text editor like Brackets.
What's the best approach after compiling to debug javascript etc using this developing method?
I've used the PGB debug tool before, but in the past it usually just showed a white screen every 9 in 10 goes!...
What's the best approach after compiling to debug javascript etc using this developing method?
I've used the PGB debug tool before, but in the past it usually just showed a white screen every 9 in 10 goes!...
- 27 Posts
- 0 Reply Likes
Posted 5 years ago
- 22 Posts
- 0 Reply Likes
The Debug has been blank in the past for me as well. I tried it today and it's working well. Make sure the app has "Debug" set in settings.
If you're desperate to fix a JS error and the debug app isnt working, you could use this:
If you're desperate to fix a JS error and the debug app isnt working, you could use this:
- 8 Posts
- 0 Reply Likes
I use GapDebug. Has worked fine so far. It allows you to change js code on the fly while debugging.
- 44 Posts
- 1 Reply Like
- 8261 Posts
- 263 Reply Likes
Hey guys
Our debug server should be more stable nowadays.
FYI we have deployed few nodes to cater debugging needs during normal as well as peak hours.
Anyway let us know if it doesn't work well for you.
Thanks.
Our debug server should be more stable nowadays.
FYI we have deployed few nodes to cater debugging needs during normal as well as peak hours.
Anyway let us know if it doesn't work well for you.
Thanks.
- 22 Posts
- 0 Reply Likes
I noticed I have to open the debug, then start my app. If i start my app then open weinre it doesn't always show.
Also, when I enter weinre, it seems to only show connections for that app build, so if you rebuild it you need to close that and open a new window.
The debug is pretty awesome. I've been using it without any problems this past week.
Also, when I enter weinre, it seems to only show connections for that app build, so if you rebuild it you need to close that and open a new window.
The debug is pretty awesome. I've been using it without any problems this past week.
- 27 Posts
- 0 Reply Likes
Will keep this in mind with the current project when we start to build on PGB.
- 20 Posts
- 0 Reply Likes
I am clearly missing something here because
[!DOCTYPE html]
[html]
[head]
[meta charset="utf-8"]
[meta http-equiv="Content-Type" content="text/html; charset=utf-8" /]
[meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" /]
[meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'"]
[link rel="stylesheet" href="css/bootstrap.min.css" ]
[link rel="stylesheet" href="css/readable.bootstrap.min.css" ]
[link rel="stylesheet" href="css/bootstrap-datepicker3.min.css" ]
[link href="css/Site.css" rel="stylesheet"]
[/head]
[body]
Aloha
[script type="text/javascript" src="cordova.js"][/script]
[/body]
[/html]
Does not register on Weinre
Config xml has
[gap:plugin name="cordova-plugin-whitelist" source="npm" version="1.1.0" /]
[access origin="*" /]
[allow-intent href="http://*/*" /]
[allow-intent href="https://*/*" /]
[allow-navigation href="http://*/*" /]
[!DOCTYPE html]
[html]
[head]
[meta charset="utf-8"]
[meta http-equiv="Content-Type" content="text/html; charset=utf-8" /]
[meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" /]
[meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'"]
[link rel="stylesheet" href="css/bootstrap.min.css" ]
[link rel="stylesheet" href="css/readable.bootstrap.min.css" ]
[link rel="stylesheet" href="css/bootstrap-datepicker3.min.css" ]
[link href="css/Site.css" rel="stylesheet"]
[/head]
[body]
Aloha
[script type="text/javascript" src="cordova.js"][/script]
[/body]
[/html]
Does not register on Weinre
Config xml has
[gap:plugin name="cordova-plugin-whitelist" source="npm" version="1.1.0" /]
[access origin="*" /]
[allow-intent href="http://*/*" /]
[allow-intent href="https://*/*" /]
[allow-navigation href="http://*/*" /]
- 32 Posts
- 0 Reply Likes
We have used Chrome Debugger for both IOS and Android platforms since we have both devices in our lab.
https://developer.chrome.com/devtools...
Hope this helps or leads you in the right direction.
https://developer.chrome.com/devtools...
Hope this helps or leads you in the right direction.
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
- 20 Posts
- 0 Reply Likes
Yeah it didnt like the config xml elements so I had to replace the < with the [ and the > with the ]
Anyway, I found the issue
[meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'"]
in my index.html was the root cause
Removed it and it worked
Anyway, I found the issue
[meta http-equiv="Content-Security-Policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'"]
in my index.html was the root cause
Removed it and it worked
Related Categories
-
PhoneGap Build
- 15111 Conversations
- 275 Followers





Jon