Nova postagem

Pesquisar

Artigo
· 1 hr atrás 7min de leitura

VSCode でリモートアタッチを利用して Embedded Python をデバッグする方法

開発者の皆さん、こんにちは!

この記事では、InterSystems IRIS サーバサイドで実行できるPython(Embedded Python)のデバッグ方法をご紹介します。

前提:VSCode の Python デバッガ用モジュールの debugpy を利用するため、Python スクリプトファイルに記載した Embedded Python のコードが対象です。クラス定義に[Language = python]を指定して記載しているコードは対象外となります。ご注意ください!

(1)なぜdebugpyを使うのか?

VSCode の Python デバッガは内部的に、debugpy を使用していますが、これは「VSCode が起動した Python プロセス」に自動適用される仕組みです。

そのため、irispython のような VSCode 管理外の Python プロセスや、すでに起動しているリモート/コンテナ上の Python に対しては、明示的に debugpy を起動する必要があります。

 

(2)debugpyのインストール

ということで、debugpy をインストールします。

pip install debugpy

必要であれば --break-system-packages を付けてインストールします。

pip3 install debugpy --break-system-packages

 

(3)VSCodeの準備

VSCode デバッグメニューを開き、create a launch.json file をクリックし、launch.json に Python リモートアタッチ用デバッガを設定します。

 

リモートアタッチで接続するサーバー名(IPアドレス)、リモートのデバッグサーバーがリッスンするポート番号を指定します。

 

 

上記指定で、launch.json がワークスペースに追加されるので、利用環境に合わせて設定を変更します。

※ ポート番号は空いている任意の番号を利用できます。

pathMappings は、「VSCode 上のファイル」と「デバッグ対象プロセスが実行しているファイル」を1対1で対応付けるための設定です。

この対応が取れていない場合、ブレークポイントを置いてもヒットしない、または別の行で止まることがあります。

pathMappings 以下の localRoot は、VSCodeのワークスペースフォルダのルートがデフォルト設定されていますので、デバッグ用のPythonスクリプトファイルがあるディレクトリを指定します。

例では、ワークスペース/src/DebugTest.py をデバッグ用コードに使用したいので、${workspaceFolder}/src としています。

pathMappings 以下の remoteRoot は、アタッチ先デバッグサーバーで実行する Python スクリプトファイルの存在するのディレクトリを指定します。

指定例は以下の通りです。

 

✅例1:Embedded Pythonの実行がローカルの場合

Windows での記述例です。

remoteRoot には、Embedded Python で実行する Python スクリプトファイルが存在するディレクトリ:C:\\WorkSpace\\EmbeddedPythonDebug\\src を指定しています。

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [

        {
            "name": "Python Debugger: Remote Attach",
            "type": "debugpy",
            "request": "attach",
            "connect": {
                "host": "localhost",
                "port": 5678
            },
            "pathMappings": [
                {
                    "localRoot": "${workspaceFolder}/src",
                    "remoteRoot": "C:\\WorkSpace\\EmbeddedPythonDebug\\src"
                }
            ]
        }
    ]
}

 

✅例2:Embedded Python の実行がIRISコンテナの場合

※ VSCode Dev Containersを利用している場合は、ドキュメント:Running a Session through Docker Dev Containers をご参照ください。

コンテナの場合は、デバッグサーバーがリッスンするポート番号をコンテナ開始時にホストから利用できるように、ポートフォーワードを指定する必要があります。

このリポジトリでは、docker-compose.yml を利用しているため、以下の設定をしています。

ports: ["9872:1972","5678:5678","52773:52773"]

services:
  iris:
    build:
      context: .
      dockerfile: Dockerfile
    ports: ["9872:1972","5678:5678","52773:52773"]
    container_name: trysql
    volumes: ["./src:/src"]
    environment:
      - TZ=JST-9

また、VSCode のデバッグで参照するホスト上のディレクトリをコンテナから参照できるようにバインドマウントしておく必要があります。

volumes: ["./src:/src"]

ホストの src をコンテナの /src にバインドマウントしています。

上記コンテナに対する launch.json は以下の通りです。

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        
        
        {
            "name": "Python Debugger: Remote Attach",
            "type": "debugpy",
            "request": "attach",
            "connect": {
                "host": "localhost",
                "port": 5678
            },
            "pathMappings": [
                {
                    "localRoot": "${workspaceFolder}/src",
                    "remoteRoot": "/src"
                }
            ]
        }
    ]
}

 

(4)デバッグ

サンプル一式👉https://github.com/Intersystems-jp/debug-embedded-python

デバッグを開始するため、debugpy をインストールしたデバッグサーバーで Python スクリプトファイルを実行します。実行時 irispython を使用します。

実行時の記述は以下の通りです。

<IRISインストールディレクトリ>/bin/irispython -m debugpy --listen localhost:5678 --wait-for-client <Pythonスクリプトファイル>

--listen localhost:5678 は、デバッグサーバーに localhost からポート 5678 での接続待機を指示しています。

コンテナの場合は、ホストから接続する必要があるので --listen 0.0.0.0:5678 と指定します。

--wait-for-client の指定で、VSCodeのデバッガーからの接続があるまで Python スクリプトが実行されないようにします。

※ --wait-for-client を指定しない場合、VSCode から接続する前に Python スクリプトが実行されるため、設定したブレークポイントには到達しません。

具体的な実行例は以下の通りです。

 

ローカルでの実行

Windowsでの実行例で記載します。IRISのインストールディレクトリを c:\intersystems\irishealth1 として記載していますので、実行環境に合わせてディレクトリを変更してください。

デバッグ前に初期データなどの準備をします。irispythonを利用して以下実行します。

c:\intersystems\irishealth1\bin\irispython .\src\DebugTest.py --mode prepare

DebugTest.py の prepare()関数を実行しています。

初期実行が終了したら、irispython と debugpy を利用して Python スクリプトを実行します。

 

 

コンテナでの実行

/usr/irissys/bin/irispython -m debugpy --listen 0.0.0.0:5678 --wait-for-client /src/DebugTest.py

DebugTest.py の run()関数を実行します。

 

コンテナ開始からデバッグ実行までの一連の流れ

コンテナ開始

docker compose up -d

コンテナへログイン

docker exec -it debugtest bash

デバッグ実行

/usr/irissys/bin/irispython -m debugpy --listen 0.0.0.0:5678 --wait-for-client /src/DebugTest.py

 

ここで、VSCodeのデバッグメニューから launch.json で指定した設定を利用して、デバッグを開始します。

launch.json の name に設定した名称:Python Debugger: Remote Attach が表示されているので、クリックするとデバッグが開始します。

 

 後は、VSCodeのメニューに従ってデバッグを進めます。

 

よくあるトラブル

実際に遭遇したトラブルをご紹介します。

✅ブレークポイントが止まらない → pathMappings の対応が合っていない

✅コンテナで localhost 指定して接続できない。 →  0.0.0.0 を指定して解消

✅import iris でエラーになる → irispythonで起動していない

Discussão (0)1
Entre ou crie uma conta para continuar
Pergunta
· 9 hr atrás

How can I programmatically retrieve a SQL query execution plan and analyze its results?

How can I programmatically retrieve a SQL query execution plan and analyze its results?

2 novos comentários
Discussão (2)3
Entre ou crie uma conta para continuar
Pergunta
· 9 hr atrás

Expert Flooring Installation Services for Your Home

Upgrading your floors can transform any room. The right flooring enhances both the look and functionality of your space. It also increases your home’s value. Homeowners often seek professional solutions to ensure quality and durability. Choosing experienced Flooring Installation Services ensures your project is done right the first time. With proper installation, floors can last for years with minimal maintenance.

 

Why Professional Flooring Matters

Installing floors may seem simple, but it requires skill. Professionals handle precise measurements, cutting, and alignment. They also prepare the subfloor to prevent future problems like warping or uneven surfaces. A well-installed floor not only looks good but also performs well over time. Relying on experts saves both time and money.

Types of Flooring Options

There are many flooring options available today. Hardwood, laminate, vinyl, and tile all offer different advantages. Homeowners choose based on style, durability, and maintenance needs. Each option has unique characteristics, and a professional contractor can guide you to the best choice for your home.

Enhancing Floors with Repairs

Sometimes floors need more than installation—they require repairs. Minor damages can reduce the beauty and lifespan of your flooring. Hardwood Flooring Repair can restore scratches, dents, or worn areas. This service ensures that your floors remain attractive and functional for years to come.

Planning Your Flooring Project

Planning is a key step in any flooring project. Consider the size of the space, type of flooring, and your budget. Discuss your vision with a contractor to make sure expectations align. Proper planning helps avoid mistakes and ensures a smooth installation process.

Laminate Flooring as a Choice

Laminate floors are popular due to affordability and style versatility. They can mimic the look of hardwood while being easier to maintain. Professional  guarantees a flawless finish and prevents issues like gaps or uneven surfaces. Laminate is also durable, making it ideal for high-traffic areas and busy households.

Maintenance Tips for Longevity

Maintaining floors is essential for long-term performance. Regular cleaning and prompt attention to minor damages prolong lifespan. Avoid excessive moisture and use protective pads under furniture. Combining routine maintenance with professional repair services ensures floors always look their best.

Combining Flooring with Other Renovations

Flooring installation is often part of larger home improvement projects. Many homeowners coordinate floors with renovations in kitchens, living rooms, or hallways. Full-service contractors handle multiple tasks, providing cohesive results throughout your home.

Choosing the Right Contractor

Selecting an experienced contractor is critical. Professionals guide you on materials, layouts, and installation techniques. They ensure safety and quality throughout the project. Hiring experts guarantees a durable and visually appealing result.

Conclusion

For homeowners in Lake Oswego, OR, and surrounding areas, expert Flooring Installation Services can improve both style and functionality. Barbosa Timberworks provides top-quality solutions, including Laminate Flooring Installation and Hardwood Flooring Repair, ensuring every project is completed with precision. Trust Barbosa Timberworks to handle your flooring needs and enhance the beauty and value of your home.

Discussão (0)1
Entre ou crie uma conta para continuar
Anúncio
· 14 hr atrás

Kick-off Webinar for InterSystems Full Stack Contest 2026

Hey Community,

We're pleased to invite everyone to the upcoming kick-off Webinar for the InterSystems Full Stack Contest!

During the webinar, you will discover the exciting challenges and opportunities that await developers in this contest. We will also discuss the topics we would like the participants to cover and show you how to develop, build, and deploy applications using the InterSystems IRIS data platform.

Date & Time: Monday, February 2 – 12:00 pm EST | 6:00 pm CET  

Speakers:  
🗣  @Derek Gervais, Developer Relations Evangelist
🗣 ​​​@Evgeny Shvarov, Senior Manager of Developer and Startup Programs
🗣 @Raj Singh, Product Manager - Developer Experience

✅ Register for the kick-off today!

Discussão (0)1
Entre ou crie uma conta para continuar
Artigo
· 16 hr atrás 8min de leitura

Why Choosing the Right Custom Healthcare Software Development Company Matters in 2026 and Beyond

Introduction

The healthcare industry is going through one of the most significant digital transformations in its history. From hospitals and clinics to diagnostic labs, pharmacies, insurance providers, and telemedicine startups, every healthcare organization today relies heavily on technology to deliver safe, efficient, and patient‑centric services. At the heart of this transformation lies one critical factor: choosing the right Custom Healthcare Software Development Company.

Healthcare is no longer just about treatment; it is about experience, accuracy, compliance, and scalability. Off‑the‑shelf software often fails to address the complex workflows, regulatory requirements, and data security needs of healthcare organizations. This is where a professional Custom Healthcare Software Development Company becomes essential. Custom‑built solutions are designed to align with real clinical processes, business goals, and long‑term digital strategies.

This in‑depth Technology and Business article explores how a Custom Healthcare Software Development Company supports modern healthcare organizations, why custom healthcare solutions are future‑proof, and how businesses can achieve long‑term ROI through tailored digital systems. The article is written in a natural, human style, fully optimized for search engines, and structured to remain relevant well into 2026 and beyond.


Understanding Custom Healthcare Software Development

Custom healthcare software development refers to the design, development, and deployment of software solutions that are specifically built for healthcare organizations based on their unique operational, clinical, and administrative needs. Unlike generic healthcare platforms, custom solutions adapt to the organization instead of forcing the organization to adapt to the software.

A reliable Custom Healthcare Software Development Company works closely with healthcare providers to understand their workflows, challenges, compliance requirements, and growth plans. The result is a system that improves efficiency, enhances patient care, and ensures regulatory compliance without unnecessary complexity.

Healthcare organizations often require software that integrates multiple departments, supports large volumes of sensitive patient data, and scales as services expand. Custom development ensures flexibility, interoperability, and long‑term sustainability.


Why Healthcare Organizations Are Moving Toward Custom Solutions

Complex Healthcare Workflows

Healthcare workflows are rarely linear. From patient registration and diagnosis to treatment, billing, and follow‑up care, every step involves multiple stakeholders and systems. A Custom Healthcare Software Development Company designs solutions that mirror these real‑world workflows, reducing errors and improving coordination.

Regulatory and Compliance Requirements

Healthcare software must comply with strict regulations such as HIPAA, HL7, GDPR, and regional healthcare laws. Custom solutions are built with compliance in mind from day one, ensuring data privacy, audit readiness, and secure information exchange.

Data Security and Privacy

Healthcare data is among the most sensitive types of information. Custom healthcare software allows organizations to implement advanced security protocols, access controls, and encryption standards tailored to their risk profile.

Scalability and Future Readiness

As healthcare organizations grow, their software must scale with them. A Custom Healthcare Software Development Company builds modular and flexible systems that support future expansion, new services, and emerging technologies.


Role of a Custom Healthcare Software Development Company

A professional Custom Healthcare Software Development Company does far more than just write code. It acts as a long‑term technology partner that supports healthcare organizations throughout their digital journey.

Key responsibilities include:

  • Business and technical requirement analysis
  • Healthcare workflow mapping
  • UI/UX design for clinical and non‑clinical users
  • Secure software architecture planning
  • Integration with existing systems
  • Regulatory compliance implementation
  • Testing, deployment, and maintenance

By combining technical expertise with healthcare domain knowledge, a trusted development partner ensures that the final solution delivers measurable value.


Types of Solutions Developed by a Custom Healthcare Software Development Company

Electronic Health Records (EHR) and EMR Systems

Custom EHR and EMR systems allow healthcare providers to manage patient records efficiently while ensuring accuracy and compliance. These systems can be tailored to specific specialties, departments, or care models.

Hospital Management Systems

Hospital management software integrates multiple operational areas such as patient administration, staff scheduling, billing, inventory, and reporting. Custom development ensures seamless coordination across departments.

Telemedicine and Remote Care Platforms

Telehealth solutions enable virtual consultations, remote monitoring, and digital follow‑ups. A Custom Healthcare Software Development Company builds secure and user‑friendly platforms that enhance patient accessibility.

Healthcare Mobile Applications

Custom mobile apps support appointment scheduling, prescription management, patient engagement, and remote health tracking. These apps improve communication between providers and patients.

Medical Billing and Revenue Cycle Management

Custom billing software reduces claim errors, accelerates reimbursements, and improves financial transparency. Tailored solutions adapt to local insurance policies and billing workflows.

Healthcare Analytics and Reporting Tools

Data‑driven decision‑making is essential in modern healthcare. Custom analytics platforms help organizations track performance, predict trends, and improve outcomes.


Business Benefits of Custom Healthcare Software Development

Improved Operational Efficiency

Custom software eliminates redundant tasks and automates manual processes, allowing healthcare staff to focus more on patient care.

Enhanced Patient Experience

User‑centric design improves patient engagement, communication, and satisfaction. Personalized digital experiences lead to better outcomes.

Cost Optimization

While custom development requires an initial investment, it reduces long‑term costs associated with licensing, inefficiencies, and system limitations.

Competitive Advantage

Healthcare organizations using tailored digital solutions are better positioned to innovate, adapt, and compete in a rapidly evolving market.

Long‑Term ROI

A Custom Healthcare Software Development Company builds systems that grow with the organization, delivering sustained value over time.


Importance of Custom Healthcare Software Development Services

When healthcare organizations invest in custom Healthcare software development services, they gain access to expertise that bridges technology and healthcare operations. These services ensure that every feature aligns with clinical goals and business objectives.

Professional custom Healthcare software development services cover the entire software lifecycle, from concept and design to deployment and continuous improvement. This holistic approach ensures stability, compliance, and adaptability.

Healthcare providers that rely on experienced development services benefit from faster digital transformation, reduced risks, and higher system adoption rates.


Integration Capabilities and Interoperability

Healthcare systems rarely operate in isolation. Custom solutions must integrate with existing platforms such as laboratory systems, pharmacy software, insurance databases, and third‑party medical devices.

A skilled Custom Healthcare Software Development Company ensures interoperability through standardized protocols and secure APIs. This enables seamless data exchange and coordinated care delivery.


Emerging Technologies Shaping Healthcare Software in 2026

Artificial Intelligence and Machine Learning

AI‑powered healthcare software supports diagnostics, predictive analytics, and personalized treatment plans.

Internet of Medical Things (IoMT)

Connected medical devices generate real‑time patient data, improving monitoring and preventive care.

Cloud‑Based Healthcare Systems

Cloud infrastructure enhances scalability, accessibility, and cost efficiency while maintaining security.

Blockchain for Healthcare Data Security

Blockchain technology improves data integrity, transparency, and trust in healthcare information systems.

A future‑focused Custom Healthcare Software Development Company designs solutions that are ready to adopt these technologies as they mature.


Choosing the Right Custom Healthcare Software Development Company

Selecting the right partner is critical for project success. Healthcare organizations should evaluate potential development companies based on:

  • Healthcare domain experience
  • Compliance and security expertise
  • Technical capabilities
  • Communication and collaboration approach
  • Long‑term support and scalability planning

A company like Digitrends, offering professional healthcare solutions through its dedicated Custom Healthcare Software Development Company expertise, understands both technical innovation and healthcare realities.


Future‑Proofing Healthcare Businesses Through Custom Software

Healthcare organizations that invest in custom solutions are better prepared for regulatory changes, technological advancements, and evolving patient expectations. A strong digital foundation enables continuous innovation without operational disruption.

By partnering with a trusted Custom Healthcare Software Development Company, healthcare businesses ensure that their technology strategy remains aligned with future demands.


Conclusion

The healthcare industry’s future depends on intelligent, secure, and scalable digital solutions. A professional Custom Healthcare Software Development Company plays a vital role in helping healthcare organizations deliver better care, improve efficiency, and achieve long‑term business success.

Through tailored systems, advanced security, and future‑ready architecture, custom healthcare software empowers organizations to meet today’s challenges and tomorrow’s opportunities. Investing in the right development partner is not just a technology decision; it is a strategic business move that defines the future of healthcare delivery.

Discussão (0)1
Entre ou crie uma conta para continuar