diff --git a/lib/opal/nodes/call.rb b/lib/opal/nodes/call.rb
index <HASH>..<HASH> 100644
--- a/lib/opal/nodes/call.rb
+++ b/lib/opal/nodes/call.rb
@@ -140,6 +140,10 @@ module Opal
         end
       end
 
+      add_special :debugger do
+        fragment 'debugger'
+      end
+
       class DependencyResolver
         def initialize(compiler, sexp)
           @compiler = compiler
diff --git a/spec/cli/compiler_spec.rb b/spec/cli/compiler_spec.rb
index <HASH>..<HASH> 100644
--- a/spec/cli/compiler_spec.rb
+++ b/spec/cli/compiler_spec.rb
@@ -31,6 +31,13 @@ describe Opal::Compiler do
     end
   end
 
+  describe "debugger special method" do
+    it "generates debugger keyword in javascript" do
+      expect_compiled("debugger").to include("debugger")
+      expect_compiled("debugger").to_not include("$debugger")
+    end
+  end
+
   def expect_compiled(source)
     expect(Opal::Compiler.new.compile source)
   end
Add special handler for 'debugger' method to run javascript debugger

The 'debugger' method call simply generates the debugger javascript
keyword to load the debugger at the given location.