@@ -9,7 +9,13 @@ if (!window.location.origin) {
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;
12−Elm.debuggerAttach = function(module, hotSwapState /* =undefined */) {
18+function debuggerAttach(module, hotSwapState /* =undefined */) {
14 make: function(runtime) {
20 make: function(runtime) {
15 var wrappedModule = debugModule(module, runtime);
21 var wrappedModule = debugModule(module, runtime);