You are creating a Web application by using the Virtual Earth 6.0 map control in Microsoft Visual Studio 2005. You program a Web page in the application by using client-side JavaScript code. When you load the Web page, it returns an error message. You are unable to identify the point of failure in the code. You need to identify the line at which the code fails by executing the client-side JavaScript code step by step. Which code segment should you use?
A.
function GetMap(){ try{ map = new VEMap(‘myMap’); map.LoadMap(new VELatLong(-33.85,19),8,’h’ ,false); } catch(e){ alert(e.message); } }
B.
function GetMap(){ try{ map = new VEMap(‘myMap’); map.LoadMap(new alert(e.message); } }
VELatLong(-33.85,19),8,’h’ ,false); debugger; } catch(e){
C.
function GetMap(){ try{ map = new VEMap(‘myMap’); map.LoadMap(new VELatLong(-33.85,19),8,’h’ ,false); } catch(e){ debugger; alert(e.message); } }
D.
function GetMap(){ try{ debugger; map = new VEMap(‘myMap’); map.LoadMap(new VELatLong(-33.85,19),8,’h’ ,false); } catch(e){ alert(e.message); } }