# scene.debugLayer.show() no longer working

**URL:** <https://forum.babylonjs.com/t/scene-debuglayer-show-no-longer-working/9102>\
**Category:** Bugs\
**Created:** [March 10, 2020, 8:11pm UTC](https://forum.babylonjs.com/t/scene-debuglayer-show-no-longer-working/9102 "2020-03-10T20:11:49Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![semirel](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/semirel/32/5871_2.png) [@semirel](https://forum.babylonjs.com/u/semirel)\
**Post date:** [March 10, 2020, 8:11pm UTC](https://forum.babylonjs.com/t/scene-debuglayer-show-no-longer-working/9102/1 "2020-03-10T20:11:49Z")

</div>

Invoking `scene.debugLayer.show();` no longer works. No changes to the imports and it suddenly stopped working.

Error:

```auto
babylon.js:16 Uncaught (in promise) TypeError: Cannot read property 'getClassName' of null
    at babylon.inspector.bundle.js:35
    at Array.filter (<anonymous>)
    at t.renderContent (babylon.inspector.bundle.js:35)
    at t.render (babylon.inspector.bundle.js:35)
    at fl (babylon.inspector.bundle.js:51)
    at gl (babylon.inspector.bundle.js:51)
    at Ki (babylon.inspector.bundle.js:51)
    at Ui (babylon.inspector.bundle.js:51)
    at Fi (babylon.inspector.bundle.js:51)
    at _i (babylon.inspector.bundle.js:51)

```

The imports:

```auto
<head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Babylon.js sample code</title>
        <!-- Babylon.js -->
        <script src="https://code.jquery.com/pep/0.4.2/pep.min.js"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/dat-gui/0.6.2/dat.gui.min.js"></script>
        <script src="https://preview.babylonjs.com/ammo.js"></script>
        <script src="https://preview.babylonjs.com/cannon.js"></script>
        <script src="https://preview.babylonjs.com/Oimo.js"></script>
        <script src="https://preview.babylonjs.com/earcut.min.js"></script>
        <script src="https://preview.babylonjs.com/babylon.js"></script>
        <script src="https://preview.babylonjs.com/inspector/babylon.inspector.bundle.js"></script>
        <script src="https://preview.babylonjs.com/materialsLibrary/babylonjs.materials.min.js"></script>
        <script src="https://preview.babylonjs.com/proceduralTexturesLibrary/babylonjs.proceduralTextures.min.js"></script>        
        <script src="https://preview.babylonjs.com/postProcessesLibrary/babylonjs.postProcess.min.js"></script>
        <script src="https://preview.babylonjs.com/loaders/babylonjs.loaders.js"></script>
        <script src="https://preview.babylonjs.com/serializers/babylonjs.serializers.min.js"></script>
        <script src="https://preview.babylonjs.com/gui/babylon.gui.min.js"></script>
        <script src="https://code.jquery.com/jquery-3.4.1.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
        <!-- <script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@1.0.0/dist/tf.min.js"></script> -->
        <script src="./classes/kdtree-min.js"></script>        
        <script src="https://cdnjs.cloudflare.com/ajax/libs/dat-gui/0.6.2/dat.gui.min.js"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/chroma-js/2.1.0/chroma.min.js"></script>
        <style>
            html, body {
                overflow: hidden;
                width: 100%;
                height: 100%;
                margin: 0;
                padding: 0;
            }

            #renderCanvas {
                width: 100%;
                height: 100%;
                touch-action: none;
            }
        </style>
    </head>

```

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [March 10, 2020, 8:28pm UTC](https://forum.babylonjs.com/t/scene-debuglayer-show-no-longer-working/9102/2 "2020-03-10T20:28:42Z")

</div>

Ohhhhhh it sounds like a bad bug related to the content of your scene ☹

Is it possible to access your scene or to repro in the playground ?

I really want to tackle this on as a priority.

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [March 10, 2020, 8:29pm UTC](https://forum.babylonjs.com/t/scene-debuglayer-show-no-longer-working/9102/3 "2020-03-10T20:29:29Z")

</div>

Also do you know when did it stop, it might help me checking into the changes.

---

<div class="post-metadata">

**Author:** ![semirel](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/semirel/32/5871_2.png) [@semirel](https://forum.babylonjs.com/u/semirel)\
**Post date:** [March 10, 2020, 8:44pm UTC](https://forum.babylonjs.com/t/scene-debuglayer-show-no-longer-working/9102/4 "2020-03-10T20:44:38Z")

</div>

I would say it stopped withing the last 20 minutes from when I posted. I don’t have a playground for it, it’s a local project.

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [March 10, 2020, 8:49pm UTC](https://forum.babylonjs.com/t/scene-debuglayer-show-no-longer-working/9102/5 "2020-03-10T20:49:48Z")

</div>

So this would be our latest update let me check what changed in there which might be related.

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [March 10, 2020, 8:52pm UTC](https://forum.babylonjs.com/t/scene-debuglayer-show-no-longer-working/9102/6 "2020-03-10T20:52:28Z")

</div>

There is nothing related to inspector in the latest change ☹ Do you have the project online I could access ?

---

<div class="post-metadata">

**Author:** ![semirel](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/semirel/32/5871_2.png) [@semirel](https://forum.babylonjs.com/u/semirel)\
**Post date:** [March 10, 2020, 8:57pm UTC](https://forum.babylonjs.com/t/scene-debuglayer-show-no-longer-working/9102/7 "2020-03-10T20:57:38Z")

</div>

I unfortunately do not have it online. I will ping you when I put it online - but given your reassurance, I will dig in my code if anything is off.

Thank you

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [March 10, 2020, 8:59pm UTC](https://forum.babylonjs.com/t/scene-debuglayer-show-no-longer-working/9102/8 "2020-03-10T20:59:18Z")

</div>

Actually, it looks working in the playground and sandbox but a bug in the inspector linked to your scene data (bug would only show in case of a special condition in the scene) is highly possible.
