Search Issue Tracker

Fixed in 2018.3.11f1

Fixed in 2018.3, 2019.1

Votes

14

Found in

2018.3.0b2

2018.3.0f2

2019.1.0a1

Issue ID

1118285

Regression

Yes

Unable to find a corresponding location while using Partial classes/methods when debugging

Scripting

-

Reproduction steps:

1. Open "Test Project.zip" project and "SampleScene" scene
2. Open "TestClass.Partial" in VS
3. In Line 9 add a Breakpoint
4. Attach to Unity
5. Enter Playmode
6. Hover over the Breakpoint
7. Notice an error "The breakpoint will not currently be hit. Unable to find a corresponding location"

Expected Result: Debugging works as expected with Partial classes/methods
Actual Result: While debugging, unable to find a corresponding location while using Partial classes/methods

Fixed in: 2019.2.0a9, 2019.1.0b8, 2018.3.11f1

Reproduced with: 2019.2.0a1, 2019.1.0a14, 2018.3.3f1, 2018.3.0f1, 2018.3.0b7, 2018.3.0b4
Did not reproduce on: 2018.3.0b1, 2018.3.0a1, 2017.4.19f1, 2017.3.0a1

Comments (6)

  1. 125811697640c93662fe4033675c78e1?d=mm

    netran

    Aug 03, 2019 07:26

    Hi / Thanks for your content
    http://bit.ly/2YnvmaU

  2. 67ca0e500374e3ff557dfbb672c572d1?d=mm

    abolfazlk0

    Jul 16, 2019 05:14

    Thank you for providing the information about the post last weekend. I have purchased the information and will give it a try soon. http://yon.ir/HhZIr And http://yon.ir/mbtUQ And http://yon.ir/YeIxO And http://yon.ir/wDZXD And https://tikban.com/بلیط-هواپیما-کرمان By your results, I'm sure I will feel better after doing it!

  3. 0fb95c55bc60f19383f7ae775bcf500e?d=mm

    erneststephens21

    Jun 21, 2019 01:19

    I hope them people will be more skeptic in things like these that's like something straight out of a sappy story. https://games.lol/zombsroyale/

  4. 76697702c16590959986c80adca91380?d=mm

    FlightFight

    May 08, 2019 13:05

    ShikenNugget's solution worked for me in Visual Studio 2019

    "Go Project Settings -> Player -> Other Settings and set the API Compatibility level to .NET 2.0 (as opposed to .NET 2.0 Subset). Restart Visual Studio, Clean and Rebuild the solution. This got rid of the warnings for me. "

  5. 799da5837578b2129cc7006bbcdb787b?d=mm

    stonstad

    Feb 12, 2019 18:21

    Still in issue in 2018.3.1f1 and it is a regression. Ugh!

  6. 52812772a74d4ea06fe75e51c3ab9bfb?d=mm

    DigitalGod

    Jan 30, 2019 01:58

    This has been driving me nuts for months. I do use partial classes in my project, but it also happens in ordinary class files, seemingly at random. A whole file will be like this for days or weeks and then suddenly it works again. There's a thread about it here: https://forum.unity.com/threads/the-breakpoint-will-not-currently-be-hit-unable-to-find-a-corresponding-location.465034/

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.