on master help sign in
it seems like the panel will hook into this by the window message
a4ea68eMichael James
runtime/Debugger.js+7−1
@@ -9,7 +9,13 @@ if (!window.location.origin) {
9}
9}
10
10
11Elm.Debugger = null;
11Elm.Debugger = null;
12+Elm.debug = function(module, moduleFile, hotSwapState /* =undefined */) {
13+ var mainHandle = Elm.fulscreen(debuggerAttach(module,hotSwapState));
14+ mainHandle.fileName = moduleFile;
15+ mainHandle.debug = Elm.Debugger;
16+};
17+
12−Elm.debuggerAttach = function(module, hotSwapState /* =undefined */) {
18+function debuggerAttach(module, hotSwapState /* =undefined */) {
13 return {
19 return {
14 make: function(runtime) {
20 make: function(runtime) {
15 var wrappedModule = debugModule(module, runtime);
21 var wrappedModule = debugModule(module, runtime);