google maps - What is my next step in debugging this JavaScript error? -


i understand chrome development tool: [vm] file javascript code executed inside [vm] file in google chrome code not directly tied file.

a client reported geocoding feature no longer working on website. it's joomla site, uses mootools. geocoding done through google maps api v3. wrote code years ago, , started acting up. i've determined bug occurring in code, end of stack-trace ends in 1 of [vm] files obfuscated.

where error crops in code:

var pf_map = {     geocoder: new google.maps.geocoder(),      geocode: function() {         var address = '123 fake st, nowhere, usa'; // valid address          // error occurs somewhere between here         console.log('this message makes console');         pf_map.geocoder.geocode({ 'address': address }, function(results, status) {             // , here             console.log('this message not make console');         });     } } 

the error reported in console is:

uncaught typeerror: cannot read property 'charat' of undefined 

the stack trace looks this:

console stack trace

it looks me mootools causing problem, have no clue how debug this. clicking on top of stack this:

easy-to-read javascript

very pleasant. i've stepped through script , scope looks when error thrown:

scope during error

well, can see b indeed undefined, knew that.

i'm pretty sure google geocoder working fine. in frustration repeatedly clicked on "map address" button enough cause separate geocode not successful following reason: over_query_limit error, on i'm basing particular assumption.

what try next in situation?

i @ delta of changes, both in code , environment, last point when code working expected.

did of included libraries change revisions? still being downloaded same sources? there newly added js code might impacting existing scripts?

if doesn't work, create dummy page basic elements suspect, , see if error gets reproduced. running dummy code node app via node-debug , stepping through code using chrome dev tools might helpful well.

good luck , let know how resolve (and i'm sure will!)


Comments

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -