2017-10-22 1 views
3

Microsoft Visual Studio (Python 3.6, 64 비트)에서 다음 코드를 실행하고 "표준 라이브러리 모듈이 가져 오는 동안 사용자 코드를 호출했으며 중단 점을 사용할 수 없습니다. 호출 코드 용 "Python/MVS - 표준 라이브러리 모듈이 호출되었습니다.

정말 도움이 되길 바랍니다. MVS에 대한 경험이 없습니다. 감사합니다!

을 찾아주세요 아래에있는 내 코드 : 향후 참조를 위해

Newton raphson method. 
from __future__ import division 
from unittest.test.test_result import __init__ 
import numpy as np 
import matplotlib.pyplot as plt 
from cplane_np import ArrayComplexPlane 
from math import sqrt 

#################################################################### 
class NewtonRaphson(ArrayComplexPlane): 
"""define a class called NewtonRaphson which is a subclass from  
ArrayComplexPlane""" 
def __init__(self): 
    ArrayComplexPlane.__init__(self, -2, 2, 401, -2, 2, 401) 
    self.z= ArrayComplexPlane(-2, 2, 401, -2, 2, 401).plane 
    om=self.z 
    om1= om.as_matrix() 
    self.resu= self.meth2() 
    ###Array of roots and iterations. 

self.plo= self.plo_res() 

def meth1(self,z0=3): 


    x0=z0 #The initial value. 
    n=0 # The initial value of iterations. 
    dx=0.01 
    dy=0.01 
    eps=sqrt(dx**2+dy**2) 

    while df(x0)!=0: #the derivation of f(x) should be not equal to zero. 

     n+=1 
     #x1=self.apply(new_fun(x0)) 
     x1= new_fun(x0) 
     if abs(x1-x0)< eps: #The condition to stop the iteration 
      return (x1,n) 
     else: 
      x0=x1 #assign new value of x1 to x0 

def meth2(self): 
    ve= np.vectorize(self.meth1) 
    return ve(self.z) 

def plo_res(self): 
    res1=self.resu 
    res_11= np.array(res1[0],dtype='float') 
    plt.imshow(res_11) 
    return plt.show() 

Output

+1

동일한 문제가 발생합니다. – ibocon

답변

0

:이은 비주얼 스튜디오에서 수정 될 것으로 예상된다 2017 15.6

https://github.com/Microsoft/PTVS/issues/3408

전에이 문제를 해결하려면 위의 github 스레드에 게시 된 제안을 따르십시오.

당신이 지금 그것을 시도하려는 경우, 당신은 https://github.com/Microsoft/PTVS/blob/master/Python/Product/PythonTools/ptvsd/debugger.py

에서 최신 버전 debugger.py의 복사본을 덮어 쓸 수 있어야한다 (당신의 Microsoft Visual에서 debugger.py 검색 스튜디오 설치 디렉토리)

이러한 경고가 "디버거 작업 진행 중"의 원인 일 수 있거나 더 심각 할 수 있습니다.

관련 문제