# How to step into simpeg function in debug mode?

**URL:** <https://simpeg.discourse.group/t/how-to-step-into-simpeg-function-in-debug-mode/308>\
**Category:** Getting Started\
**Created:** [April 26, 2022, 6:31am UTC](https://simpeg.discourse.group/t/how-to-step-into-simpeg-function-in-debug-mode/308 "2022-04-26T06:31:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kane](https://avatars.discourse-cdn.com/v4/letter/k/76d3ee/32.png) [@kane](https://simpeg.discourse.group/u/kane)\
**Post date:** [April 26, 2022, 6:31am UTC](https://simpeg.discourse.group/t/how-to-step-into-simpeg-function-in-debug-mode/308/1 "2022-04-26T06:31:47Z")

</div>

I want to step into the function LinearSimulation(Line,61) using F11. but the vscode jump into another python file named base.py , which is not the simulation.py that includes the goal function LinearSimulation.

Why this happen, and how can I trace the goal function LinearSimulation to see how it works?

Someone can give any tips?really appreciate.

```auto
60:# In[Defining the Simulation]
61:sim = simulation.LinearSimulation(mesh,G=G,model_map=model_map)
62:std = 0.1
63:np.random.seed(1)
64:data_obj = sim.make_synthetic_data(true_model, realtive_error=std,add_noise=True)

```

 ![图片1](https://global.discourse-cdn.com/free1/uploads/simpeg/original/1X/d10eee2fd4060bd0000f4c0e3f540c238a8387a9.jpeg)
