on master help sign in
it seems like the panel will hook into this by the window message
commita4ea68e600fd45834ee6dced6f3ce0f1227efd02 authorMichael James <michael@michaelbjames.com> dateThu 14 Aug 2014, 10:52 (12 years ago) parent49159f3
1 file changed+7−1
runtime/Debugger.js+7−1
runtime/Debugger.js+7−1
@@ -9,7 +9,13 @@ if (!window.location.origin) {
99}
1010
1111Elm.Debugger = null;
12−Elm.debuggerAttach = function(module, hotSwapState /* =undefined */) {
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+
18+function debuggerAttach(module, hotSwapState /* =undefined */) {
1319 return {
1420 make: function(runtime) {
1521 var wrappedModule = debugModule(module, runtime);